将组合框dopdown的宽度和高度设置为零 [英] Set combobox dopdown width and height to zero

查看:87
本文介绍了将组合框dopdown的宽度和高度设置为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

如何将组合框下拉列表的宽度和高度设置为零?

非常感谢.

Dear all,

How to set combobox dropdown width and height to zero?

Thanks very much.

推荐答案

最好是分享这样做的原因,而不是去问它.但是,您的要求是可能的.不过,我不确定最终能否实现您想做的事情.

根据您的要求,听起来好像您想在代码中的某个时间点隐藏控件.如果是这样,请使用能见度属性,而不要使用高度/宽度.
It would had been better to share the reason to do so instead of asking about it. Yet, what you ask is possible. Though, I am not sure that will fulfill what you want to do at the end.

Based on what you ask, it sounds like you want to hide the control at some point of time in your code. If so, use visibility property instead of playing with height/width.


亲爱的所有人,

我只想在单击下拉菜单图标时隐藏组合框的下拉列表.
我想使用datagridview构建自定义组合框以显示多个列,并且可以查看标题,对每个列进行排序,过滤.
所以我想必须将width和height设置为零才能隐藏它.

感谢您的帮助.
Dear all,

I just want to hide the dropdownlist of combobox when click to the dropdown icon.
I want to build the custom combobox using datagridview to display multiple columns and can view headers, sort, filter each column.
So I think I have to set the width and height to zero to hide it.

Thanks for your help.


这篇关于将组合框dopdown的宽度和高度设置为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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