Connecting Tech Pros Worldwide Help | Site Map

Does C# have an onSelect property like JavaScript?

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#1: Oct 3 '08
Title says it all really. I just started learning C# today with MS Visual C# - I say learning, but it feels like I'm just dragging and dropping things.

So, anyway, I can do said task when the user selects the option and then clicks it again by doing this:

Expand|Select|Wrap|Line Numbers
  1.         private void toolStripComboBox1_Click(object sender, EventArgs e)
  2.         {
  3.             textBox1.Text = toolStripComboBox1.Text;
  4.         }
But I was wondering if I can do the same but when the user selects something.

Cheers,
Markus.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Oct 3 '08

re: Does C# have an onSelect property like JavaScript?


This is the C and C++ forum; no matter Microsoft's clever choice of the name,
C# is an entirely different language. You have to move your question over to the
C# forum.

kind regards,

Jos
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,387
#3: Oct 3 '08

re: Does C# have an onSelect property like JavaScript?


Visual studio should have a list of events in the properties tab for each object you select if you are using the window editor that comes with VS.

http://msdn.microsoft.com/en-us/libr...ox_events.aspx
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#4: Oct 3 '08

re: Does C# have an onSelect property like JavaScript?


Quote:

Originally Posted by RedSon

Visual studio should have a list of events in the properties tab for each object you select if you are using the window editor that comes with VS.

http://msdn.microsoft.com/en-us/libr...ox_events.aspx

Thankyou, Redson.
Reply


Similar .NET Framework bytes