[英]Issues with Windows forms user control
I am creating a Windows forms user control. 我正在创建Windows窗体用户控件。 This control has a
textbox
and a listbox
. 该控件具有一个
textbox
和一个listbox
。
When the end user types text in the textbox
, the listbox will appear and filter the data depending on the text box. 当最终用户在
textbox
框中输入textbox
,将出现列表textbox
,并根据文本框过滤数据。 The data is set by a datasource. 数据由数据源设置。
I have created this control because I want to filter in the contains of data "not start with." 之所以创建此控件,是因为我想过滤数据中的“不是开头”。
Now after I create the control I found a problem when the list appear it did not appear out of form boundaries. 现在,在创建控件后,我发现列表出现时出现了问题,但它没有超出窗体边界。
I change the control size in appear and disappear the listbox. 我在显示控件中更改控件的大小,然后消失列表框。 What can I do?
我能做什么?
You can not show a ListBox
out of the boundaries of its parent Form
. 您不能将
ListBox
显示在其父Form
的边界之外。 What you really wan to do is open a new Form
where ListBox
is visible. 您真正想做的是打开一个新
Form
,其中的ListBox
可见。
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.