Re: adding event handlers for windows controls
From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 04/22/04
- Next message: Brian H: "DrawText/DrawImage"
- Previous message: Ilya Tumanov [MS]: "RE: InvalidCastException"
- In reply to: Joanne: "adding event handlers for windows controls"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 15:01:27 -0400
Joanne:
In VB.NET, you can click on the combo box in the upper right hand corner of
the app and it will list them for you. In C# you need to go into the
properties window and look for the yellow lightning bolt. In both places
you'll find a list of available events.
Also note that you may be able to add handlers for many events b/c they
inherit from Control. HOwever, just b/c those events are there and compile,
that doesn't mean they'll actually fire. The click event of a label
coontrol comes to mind.
HTH,
Bill
"Joanne" <jimpierce@mobiledynamo.com> wrote in message
news:OtCeXnHKEHA.3944@tk2msftngp13.phx.gbl...
> Is there an easy / automatic way to add new events & handlers to a C# CF
app
> form designer?
>
> If I double click on a control in the form designer it will open the code
> window and automatically add the event handler and delegate but only for
the
> default control event. Is there a way I can force VS to create other
events
> such as the key down event without having to add it manually?
>
> Thanks
> Joanne
>
>
- Next message: Brian H: "DrawText/DrawImage"
- Previous message: Ilya Tumanov [MS]: "RE: InvalidCastException"
- In reply to: Joanne: "adding event handlers for windows controls"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|