• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

VS 2005 - event list not showing up

I am new to Visual Studio 2005 and C#. I have programmed in VB .NET with Visual Studio 2003. My question is probably quite simple. I have a Form1 with a button1 on it. All I want to do is get a list of events for that button1. This was very simple in Vb .Net, all I did was go to the drop-down list box and click on the correspong event I wanted to the right and the code was there ... how do I do this with 2005 ?
1 Solution
Mike TomlinsonMiddle School Assistant TeacherCommented:
Select the Button on the form.  Then in the Properties Pane, click the "lightning bolt" icon to see all the events for that button.  Double click one to get the code stub.

Or...in the code editor, you can wire up events dynamically.


After you press the "." you will get the events.

Let's say you select the Click event:


Then type " +=" and hit Tab twice.

    button1.Click += //followed by two Tabs

This will place the code stub into the editor for you.

Hope that helps...I find that switchin back and forth between the C# and VB.Net editors really hurts my head....   =\
bbooAuthor Commented:
Thanks ... now I see. Works great!

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now