Selecting an event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I'm very new to C# & .NET
I'm having trouble finding events for controls placed on a form. I'm used to
VB6 in which the control was chosen from a drop down box on the top left &
the event was chosen from a drop down box on the right. These two boxes
appear in the C# IDE, however, the left hand box only offers one selection,
the selection being the form1, & the right box offers what I'm guessing is a
reference to all the objects definitions, represented by a little blue
rectangle and (?) a lock symbol, and a single event (click in the case of
buttons) for that object, represented by a little purple rectangle. Can
anybody help me locate all the other events like say, LostFocus etc.

Thank you very much
Ant
 
Hey Morten,
Once again thanks. I just had a good look around the events. Wow, so much
more flexible than old VB! Once I got my head around the fact that you name
your own event procedures, which must then be assigned to the controls event
in the namespace, it all made sense. At first i was wondering how an event
could still be firing whilst sharing a differnt name to it's control. It's
great.
Thank you.
Ant
 
Hi,

This seems to catch out lots of ex vb programmers as well. Can anyone
recommend any specific online resources which I can point our
transitionals at?
 

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

Back
Top