.NET CF设置“DroppedDown'的组合框 [英] .NET CF set 'DroppedDown' for combobox
问题描述
我想在手机程序(.NET CF 3.5)。
I want to open a combobox from my program on a mobile program (.net cf 3.5).
从我的程序中打开一个下拉框,但不存在的属性如 cmbBox.DroppedDown
紧凑型框架
的 Accesing WinCE的组合框DroppedDown财产(.NET CF 2.0)
,而我不想让当前的状态,而是要对其进行设置。
but there doesn't exist a property like cmbBox.DroppedDown
in compact-framework
Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0)
But I don't want to get the current state, but to set it.
如何执行呢?
推荐答案
您可以采取同样的方法,因为引用的文章中并发送消息。
You can take the same approach as in the referenced article and send it a Message.
而不是使用 const int的CB_SHOWDROPDOWN = 0x14F
为您的消息。
Instead use const int CB_SHOWDROPDOWN = 0x14F
for your message.
这是参考样本,修改一下:
From that reference sample, modified a bit:
Message.Create(comboBox.Handle, CB_SHOWDROPDOWN , (IntPtr)1, IntPtr.Zero); // to open
Message.Create(comboBox.Handle, CB_SHOWDROPDOWN , (IntPtr)0, IntPtr.Zero); // to close
这篇关于.NET CF设置“DroppedDown'的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!