It sounds to me like you should probably be using a Label with its Text set to "Resolution:" rather than having it as part of the TextBox contents.
If you really need it in the TextBox, in the KeyPress event handler you will need to check that the user is typing a character and if the cursor is located within the word "Resolution". The curosr position can be found using the SelectionStart property. Then you would set e.Handled to True if you wanted to reject the character.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.