S
steven_licciardinnoossppaamm
Hello,
I am creating events textboxes on the fly within my code
and would like to capture the keypress events for each
textbox. In c# I would use :
this.textBox1.KeyPress += new
System.Windows.Forms.KeyPressEventHandler
(this.textBox1_KeyPress);
where I create the textbox. However if I use vb.net and
the following :
tb.KeyPress += New
System.Windows.Forms.KeyPressEventHandler(AddressOf
Me.textBox1_KeyPress)
I get an error telling me that KeyPress is an event and
cannot be used direct.....
Can anyone please advise.
Thanks,
Steven
I am creating events textboxes on the fly within my code
and would like to capture the keypress events for each
textbox. In c# I would use :
this.textBox1.KeyPress += new
System.Windows.Forms.KeyPressEventHandler
(this.textBox1_KeyPress);
where I create the textbox. However if I use vb.net and
the following :
tb.KeyPress += New
System.Windows.Forms.KeyPressEventHandler(AddressOf
Me.textBox1_KeyPress)
I get an error telling me that KeyPress is an event and
cannot be used direct.....
Can anyone please advise.
Thanks,
Steven