Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to select event of controls

how to select event of controls

Scheduled Pinned Locked Moved C#
csharpquestiontutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    please help 0
    wrote on last edited by
    #1

    I was a VB.Net guy, and now I became a C# programmer, and I have a little question. In VB.Net there is a possibility to select a control in the drop down list at the top of the screen, and then view all the possible events for this control at the other drop down list (on the other side of the screen). Is it possible in C# as well ? I can't figure out how to do it.

    M 1 Reply Last reply
    0
    • P please help 0

      I was a VB.Net guy, and now I became a C# programmer, and I have a little question. In VB.Net there is a possibility to select a control in the drop down list at the top of the screen, and then view all the possible events for this control at the other drop down list (on the other side of the screen). Is it possible in C# as well ? I can't figure out how to do it.

      M Offline
      M Offline
      Mr Kode
      wrote on last edited by
      #2

      Events on C# located on the properties window for each control yellow icon on the top

      P 1 Reply Last reply
      0
      • M Mr Kode

        Events on C# located on the properties window for each control yellow icon on the top

        P Offline
        P Offline
        please help 0
        wrote on last edited by
        #3

        ya, from thats ok, but how from source like in vb , from vb you can select controls and their related all events from aspx.vb page. So same way, how can we do in c#.net

        N C 2 Replies Last reply
        0
        • P please help 0

          ya, from thats ok, but how from source like in vb , from vb you can select controls and their related all events from aspx.vb page. So same way, how can we do in c#.net

          N Offline
          N Offline
          Nouman Bhatti
          wrote on last edited by
          #4

          In C# you don't have the option to select the control and than select it's events... from the source file. You have to refer to property page.

          1 Reply Last reply
          0
          • P please help 0

            ya, from thats ok, but how from source like in vb , from vb you can select controls and their related all events from aspx.vb page. So same way, how can we do in c#.net

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            Look at the code that's generated in the designer file. You can hook up the events as delegates in code, if you like. However, you can't specify that a method handles an event in the place where you define the method, the way VB does it.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups