[C#]checking the button

Discussion in 'Mixed Languages' started by carmz, Aug 23, 2012.

  1. carmz

    carmz MDL Senior Member

    Nov 29, 2011
    285
    7
    10
    #1 carmz, Aug 23, 2012
    Last edited: Aug 23, 2012
    Hi,i want to change the event of my button.
     
  2. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,324
    60
    Explain it a bit more??

    eventargs e, sender object?

    Confused :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AviiNL

    AviiNL MDL Novice

    Aug 6, 2012
    22
    228
    0
    #3 AviiNL, Sep 10, 2012
    Last edited by a moderator: Apr 20, 2017
    in the for designer doubleclick your button.
    OR

    in the form load, or void Form1 code (after the InitializeComponent):
    Code:
    button1.Click += button1_clicked;
    
    then add a new function
    Code:
    void button1_clicked(object sender, EventArgs e){
     // your code here
    }
    
    @TheDev:
    GET OUT OF MY C DRIVE! OMGAWD (reference to your location :p)