textbox control managing behaviour of editing content
-
Hello everyone, Im wondering if its possible to make my control behave in the way described below: during editing text when user types enter normally cursor moves to the next line creating new emtpy line and then user can keep on writing. I would like to make it possible to move to another line by typeing enter only when the current line contains 10 characters. Hope taht my description of the problem is clear, thanks for any hint, Witek
-
Hello everyone, Im wondering if its possible to make my control behave in the way described below: during editing text when user types enter normally cursor moves to the next line creating new emtpy line and then user can keep on writing. I would like to make it possible to move to another line by typeing enter only when the current line contains 10 characters. Hope taht my description of the problem is clear, thanks for any hint, Witek
Use the
KeyDown
event, inside check if the Return key was pressed. If it was then you can check how many characters are in the current line. If there are not enough characters in the line then sete.Handled
totrue
to ignore key.My current favourite word is: Nipple!
-SK Genius