CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 1999
    Location
    Cologne, Germany
    Posts
    112

    Simply TextBox, but .....

    I'm creatig a TextBox at runtime and would like to process the events such as "OnChange" or "OnMouseClick" which are being sent from or sent to my TextBox. How can I catch these events in order to deal with them ?

    Regards, Zachi

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    Dim WithEvents txtVar as TextBox

    Then you should see the events listed...

  3. #3
    Join Date
    Nov 1999
    Location
    Cologne, Germany
    Posts
    112
    Well, I do see the events in the list, but 1.) how can I process them, and 2.) I do not have to create one single TextBox but something between 2 and 100 of them. I can of course create them all with the DIM command, but I'm not sure if that's the corectw way to go ?!?

    Regards, Zachi

  4. #4
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    take a look at "Handles" and "AddHandler" in the help. I haven't done any of this yet, but I think your solution is there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured