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

DropDown List open as soon as it has focus

4 Answers 65 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Helen
Top achievements
Rank 2
Helen asked on 11 Feb 2015, 12:39 AM
Hi folks,

Is there any way to have the WinForms DropDownList control automatically drop down as soon as it has the focus?

Thx

Helen

4 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 11 Feb 2015, 07:40 AM
Hi Helen,

Thank you for writing.

You can do that by capturing the GotFocus event and in it call the control's ShowDropDown menu:
void radDropDownList1_GotFocus(object sender, EventArgs e)
{
    radDropDownList1.ShowDropDown();
}

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Helen
Top achievements
Rank 2
answered on 11 Feb 2015, 03:16 PM
Perfect! Just what I need!
0
Helen
Top achievements
Rank 2
answered on 11 Feb 2015, 03:25 PM
Um ... I'm not seeing a GotFocus event in the properties window?
0
Stefan
Telerik team
answered on 11 Feb 2015, 04:46 PM
Hi Helen,

GotFocus comes from the Control class and it is defined as Browsable(false), hence this event is not visible in the events list. You can subscribe to it with code:
radDropDownList1.GotFocus+=radDropDownList1_GotFocus;

I hope this helps.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownList
Asked by
Helen
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Helen
Top achievements
Rank 2
Share this question
or