simulate mouse click

  • Thread starter Thread starter Doug Crawford
  • Start date Start date
D

Doug Crawford

I am trying to programatically make the ComboBox drop down list drop.
But the NET CF 2.0 ComboBox does not support the DroppedDown property.
The only way I can think of to do this is to simulate a mouse click. Is
is it possible to send a mouse down message in NET CF 2.0?
 
Better than mouse simulation you can send the native control a specific
message to drop down the list. The specific message is CB_SHOWDROPDOWN (you
can look up the value in winuser.h). In .NETCF 2.0 you can get the Handle
property of the control, then use
Microsoft.WindowsCE.Forms.MessageWindow.SendMessage to send this message to
the control with 0 or 1 in the wParam to change the state.

Peter
 
Back
Top