problem with direcly calling combobox event

  • Thread starter Thread starter s Domadia via .NET 247
  • Start date Start date
S

s Domadia via .NET 247

Hi,
actually my problem is with combobox event handling. when i clickon some pictureBox control i want to call ComboBox click eventdirectly,now upto some extent it's fine . i mean when i click onpicturebox it is calling the code that is written inComboBox_click() event but that is not enough i want to havesame response as when u click on a combobox(ie. clickingcombobox displays dropdown list). so even i want to do samewhen user clicks on picturebox not only it shld callComboBox_click() event but it should display that dragdrop listalso same way as it is calling the ComboBox_click() event.
It would be really helping if you can provide any suggestions.
 
You can programmatically display the ComboBox's list by setting its
DroppedDown property to True.

[C#]
this.comboBox1.DroppedDown = true;

[VB.Net]
Me.ComboBox1.DroppedDown = True

--
Tim Wilson
..Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}
Hi,
actually my problem is with combobox event handling. when i click on some
pictureBox control i want to call ComboBox click event directly,now upto
some extent it's fine . i mean when i click on picturebox it is calling the
code that is written in ComboBox_click() event but that is not enough i want
to have same response as when u click on a combobox(ie. clicking combobox
displays dropdown list). so even i want to do same when user clicks on
picturebox not only it shld call ComboBox_click() event but it should
display that dragdrop list also same way as it is calling the
ComboBox_click() event.
It would be really helping if you can provide any suggestions.
 
Back
Top