开发者

About Gotfocus and MouseClick event

开发者 https://www.devze.com 2022-12-14 11:10 出处:网络
I have added one combo box on form and written Got focus event for that as DroppedDown=True. But when I click on the combobox first that gotfocus event get call and items list get pop up. But after th

I have added one combo box on form and written Got focus event for that as DroppedDown=True. But when I click on the combobox first that gotfocus event get call and items list get pop up. But after that due to mouse up event that list again pop dow开发者_运维知识库n so i cann't see the pop up list. How to tackle this??

Can low level event or global hooks help in this case??


I shall suggest you not to handle GotFocus event.


try this

if (MouseButtons == MouseButtons.None)
combobox.DroppedDown = true;
0

精彩评论

暂无评论...
验证码 换一张
取 消