Stoopid newbie post

  • Thread starter Thread starter JamesB
  • Start date Start date
J

JamesB

Hi all,
I'm used to VB.net (in VS2003) but just starting out with C#.

I have a silly problem, I can't access the properties and methods of
controls to add code.

In a VB Project, I could double-click on (for example) a button and it would
add a bit of code for the click event, but if I didn't want that, I could
choose another event from the dropdown at the top.

In my C# project, that doesn't work. Specifically, I'm double clicking a
panel, and it adds a "gotfocus" event code, but I want to see what others
there are - but the dropdown doesn't show them.

Where do I look?

James.
 
James,

Double-clicking a control in C# will add the default code stub for that
control. If you just want to browse what events there are, select the
control you want to work with and open up the properties window
(View->Properties Window or Ctrl-W). Then click the "lightning" icon
at the top of this window for the events.

hope this helps.

-SLC
 
dotnetchic said:
James,

Double-clicking a control in C# will add the default code stub for that
control. If you just want to browse what events there are, select the
control you want to work with and open up the properties window
(View->Properties Window or Ctrl-W). Then click the "lightning" icon
at the top of this window for the events.

hope this helps.

Easy when you know how!
Thanks
James.
 
On 14 Feb 2006 07:14:38 -0800, "dotnetchic" <[email protected]>
wrote:

-> James,
->
-> Double-clicking a control in C# will add the default code stub for
that
-> control. If you just want to browse what events there are, select
the
-> control you want to work with and open up the properties window
-> (View->Properties Window or Ctrl-W). Then click the "lightning"
icon
-> at the top of this window for the events.
->
-> hope this helps.
->
-> -SLC


After clicking on a control, F4 will bring up the properties window as
well. I believe this works in both VS.NET and VS 2005.
 
Back
Top