Thread: radiobutton click event

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    173

    radiobutton click event

    Hi:
    I had one radiobutton on the form, and if I clicked it, the event will happen, let's say one message box would pop up.

    but the problem is that the message box could only pop up once, if I continue to click that, nothing happened.

    I've tried such kind of functions like radiobutton.Click, radiobutton.CheckedChanged().

    how can I solve it?
    thank you.
    Don't laugh at me,I am just a SuperNewbie.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Maybe a Click-Event is only generated when the selection of a radiobutton changes. Try MouseDown.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    173
    still no use, I used it like:

    private void radioButton1_MouseDown(object sender, System.EventArgs e)

    right?
    Don't laugh at me,I am just a SuperNewbie.

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Did you add it to the radiobuttons eventhandler ? Simply writing the function will not work
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. event handling is serialized in MS Visual Studio C++ 2005 ??
    By mynickmynick in forum Windows Programming
    Replies: 3
    Last Post: 08-07-2008, 04:47 AM
  3. Creating a function pointer from a button click event?
    By dxfoo in forum Windows Programming
    Replies: 20
    Last Post: 01-29-2008, 03:35 AM
  4. Events
    By siavoshkc in forum C# Programming
    Replies: 1
    Last Post: 10-02-2006, 02:43 AM