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 :)
Printable View
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 :)
Dim WithEvents txtVar as TextBox
Then you should see the events listed...
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 :)
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.