This is a migrated thread and some comments may be shown as answers.

handle right click on RadButtonElement ?

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mahdi
Top achievements
Rank 2
Mahdi asked on 28 May 2012, 11:29 AM
hi dears,
please help me , how can i handle right click on a RadButtonElement ?

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 31 May 2012, 01:19 PM
Hi Mahdi,

Thank you for your question.

You can subscribe to the MouseDown event or the button and handle it the following way:
void radButtonElement1_MouseDown(object sender, MouseEventArgs e)
{
    if (e.Button == System.Windows.Forms.MouseButtons.Right)
    {
        //do something
    }
}

I hope this will help you. If you have any additional questions, feel free to ask.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
General Discussions
Asked by
Mahdi
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
Share this question
or