Home › Forums › WinForms controls › Other WinForms controls › WinTextBox’s Events
-
AuthorPosts
-
#17978 |
Most events arent working at all, like
MouseDown
MouseUp
Click
DoubleClick
TextChanged
KeyPress
KeyDownPlease tell me whats the point of using something a bit more colorful but provide totally no functions ?
Imported from legacy forums. Posted by narf03 (had 4580 views)
Hello,
The WinTextBox control is a container control which contains an inner textbox. All of the inner textbox’s properties and events are accessed via the WinTextBox control’s TextBoxArea.
I hope this clears things up!
Imported from legacy forums. Posted by Jenny [Xceed] (had 190 views)
Thanks for replying, and sorry for the misunderstanding.
Btw I did it this way, adding this line above the control was added to the formAddHandler WinTextBox.TextBoxArea.TextChanged, AddressOf WinTextBox_TextChanged
Are there any way performing it using ‘traditional way’ ? Like editing the
Private sub abc(sender as object, e as eventargs) Handles WinTextBox.TextChanged
to
Private sub abc(sender as object, e as eventargs) Handles WinTextBox.TextBoxArea.TextChanged
which the last one gives me error(‘Handles’ must specify a ‘WithEvents’ variable or ‘MyBase’ qualified with a single identifier.)
Thanks in advance.
Imported from legacy forums. Posted by narf03 (had 373 views)
The TextBoxArea is created internally by the WinTextBox control and the “new” does not appear in the persisted code so you can’t add the missing “WithEvents” that VB requires to indicate that a control supports events and thus can’t use the traditional “Handles” keyword.
Are you encountering any issues when handling events using the AddHandler/Addressof keywords rather than Handles?
Imported from legacy forums. Posted by Jenny [Xceed] (had 178 views)
can you give us an example on how to do that in wintext box
Give more example codeImported from legacy forums. Posted by archie (had 303 views)
it is better to give an example than explaining what it is
Imported from legacy forums. Posted by archie (had 5093 views)
-
AuthorPosts
- You must be logged in to reply to this topic.