Code View, "Types" dropdown only contains "Form1". How do I get controls and their methods?

I'm looking at the Code View of my form - Form1.cs. 

At the top, the "Types" dropdown contains only <project name>.Form1, and the "Members" dropdown lists the controls on the form, grayed out with a blue icon next to them. 

The form has a DataGridView control on it.  I would like to see the available methods for this control, and add code for the appropriate one. 

Previously, in VS2003, I would select "DataGridView1" in the left drop down, and the right side dropdown would then be populated with the available methods for the selected control.

How do I get this in VS2005

John


Answer this question

Code View, "Types" dropdown only contains "Form1". How do I get controls and their methods?

  • rfairlie

    One way to do this in VS2005 is to do this through the properties grid.  Go to Design View, right-click on the control, and select properties.  You should see the properties window appear.  In the properties window, select the lightning bolt icon ("events") and this will populate with the available event handlers for the selected control.

    HTH,
    Karen

  • Robert Vabo

    I'm sorry - it's the "Events" that pertain to the control that I want to see listed, not the methods.

    John

  • Code View, "Types" dropdown only contains "Form1". How do I get controls and their methods?