simulate mouse click

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?
 
P

Peter Foot [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top