ToolStripDropDownButton.DropDown不会关闭?! [英] ToolStripDropDownButton.DropDown won't close?!

查看:108
本文介绍了ToolStripDropDownButton.DropDown不会关闭?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个难题(对我而言)要解决。

I have a difficult problem (for me) to solve.

我的表格中有一个带有DropDownButton的ToolStrip。表格本身是MDI儿童。 DropDown项目是从表单的Load事件中的数据库加载的。多年来,这个设置运行良好,但是一个客户现在无法在打开后关闭下拉列表。

I have a ToolStrip in my form with a DropDownButton. Form itself is a MDI child. DropDown items are loaded from the database in the Load event of the form. For years this setup worked fine but one customer is now unable to close the dropdown once it's opened.

对于他来说,这只发生在一个表单上(ToolStrip是基本表单和所有用户的一部分)每次都为一个用户提供表格。 DropDown只能通过重新启动应用程序来删除。

For him this happens on only one form (ToolStrip is part of a base form and all user forms are derived from it) for one user every time. DropDown can only be removed by restarting the application.

表单本身不会覆盖有关下拉按钮的方法,但肯定会出现问题。

The form itself doesn't override methods concerning the dropdown button but something is surely amiss here.

你能说出任何可以阻止关闭下降的情况吗?

Can you state any circumstance that would prevent drop down from closing?

你能推荐一些确保关闭下拉菜单的技巧吗?

Can you recommend any trick that will ensure closing of the dropdown?

任何感谢帮助。

推荐答案

Set" ToolStripDropDownButton.DropDown.AutoClose"属性为真。

Set "ToolStripDropDownButton.DropDown.AutoClose" property to true.

 


this.toolStripDropDownButton1.DropDown.AutoClose = true;


这篇关于ToolStripDropDownButton.DropDown不会关闭?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆