newbe: create new event with designer

P

Peter Ramsebner

Hi all,

with dobleclick on a control, the forms designer create a new eventhandler
for the actual control.
When you need an eventhandler for specific events (for example 'validating')
then you have to do it manually?
Or exists a way to do it with the designer?

Thanks for help

Peter
 
C

CJ Taylor

Look at the drop downs on the top of your code windows. They show anything
declared WithEvents, and the events (that are visible) will be in the drop
down to the right.
 
P

Peter Ramsebner

Thanks for your help!


CJ Taylor said:
Look at the drop downs on the top of your code windows. They show anything
declared WithEvents, and the events (that are visible) will be in the drop
down to the right.
 
H

Herfried K. Wagner [MVP]

Peter,

* "Peter Ramsebner said:
with dobleclick on a control, the forms designer create a new eventhandler
for the actual control.
When you need an eventhandler for specific events (for example 'validating')
then you have to do it manually?
Or exists a way to do it with the designer?

Select the control in the left combobox on top of the text editor
window, then select the event in the right combobox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top