Re: adding event handlers for windows controls

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 04/22/04


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
>
>



Relevant Pages

  • Re: adding event handlers for windows controls
    ... >From the Form designer with the Property pane visible, ... "Joanne" wrote in message ... > 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 ...
    (microsoft.public.dotnet.framework.compactframework)
  • adding event handlers for windows controls
    ... Is there an easy / automatic way to add new events & handlers to a C# CF app ... If I double click on a control in the form designer it will open the code ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Opinion wanted
    ... the details including the nature of my own app (which you mischaraterized ... correct the current control (provided that control is invalid but invalid ... causes you to validate controls that have already been ... largely discreditted for good reason and has very little use these days. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Honestly Curious
    ... Mac apps do not need this. ... you don't have to run an app at all. ... You don't have to look for the right app to uninstall, ... full control over what is being removed from your HD. ...
    (comp.sys.mac.advocacy)
  • Re: Visual Basic for Autorun?
    ... If changes are required they can't be specific to one app. ... Obviously this doesn't apply to all usercontrols and should ... everything is in the one language. ... >I've done it fairly extensively and it works quite well as long as you keep good control over it. ...
    (microsoft.public.vb.general.discussion)