Does C# have an onSelect property like JavaScript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #1

    Does C# have an onSelect property like JavaScript?

    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:

    Code:
            private void toolStripComboBox1_Click(object sender, EventArgs e)
            {
                textBox1.Text = toolStripComboBox1.Text;
            }
    But I was wondering if I can do the same but when the user selects something.

    Cheers,
    Markus.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    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

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      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

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        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.

        Comment

        Working...