Home Forums WinForms controls Other WinForms controls WinTextBox’s Events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17978 |

    Most events arent working at all, like

    MouseDown
    MouseUp
    Click
    DoubleClick
    TextChanged
    KeyPress
    KeyDown

    Please 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)

    Xceed Support
    Member
    Post count: 5658

    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)

    User (Old forums)
    Member
    Post count: 23064

    Thanks for replying, and sorry for the misunderstanding.
    Btw I did it this way, adding this line above the control was added to the form

    AddHandler 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)

    Xceed Support
    Member
    Post count: 5658

    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)

    User (Old forums)
    Member
    Post count: 23064

    can you give us an example on how to do that in wintext box
    Give more example code

    Imported from legacy forums. Posted by archie (had 303 views)

    User (Old forums)
    Member
    Post count: 23064

    it is better to give an example than explaining what it is

    Imported from legacy forums. Posted by archie (had 5093 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.