Pls help! how to prevent user to delete prefix value in my texbox
C#
3
Posts
3
Posters
0
Views
1
Watching
-
i want that my prefix or my first 4 char value in my textbox which is "SPR-" cannot be deleted or modify by the user...how to code that.. plz.
-
i want that my prefix or my first 4 char value in my textbox which is "SPR-" cannot be deleted or modify by the user...how to code that.. plz.
Use a MaskedTextBox[^] instead, and set the mask to "SPR-&&&&&&&&&&&" where the number of '&' characters equals the max length of the input. You can remove the underscore by setting the PromptChar property to space.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.