VS 2005 - event list not showing up

Posted on 2007-10-01
Last Modified: 2013-11-26
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 ?
Question by:bboo
    LVL 85

    Accepted Solution

    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. 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....   =\

    Author Comment

    Thanks ... now I see. Works great!

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now