如何在标题栏中创建文本框 [英] How to create a textbox in titlebar
本文介绍了如何在标题栏中创建文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
如何在vb.net 2010中Windows窗体应用程序的标题栏中创建文本框
我需要此文本框以便在我的应用程序中进行快速搜索.
tnx all.
hello everyone .
how I can create a textbox in title bar in windows form application in vb.net 2010
I need this textbox for quick search in my application .
tnx all.
推荐答案
在此处询问并回答了类似的问题: ^ ]
它说:
您正在尝试将控件附加到窗体的非客户区域.这里有几篇文章,但是没有一篇文章将Windows控件附加到该区域.您应该能够创建Windows控件并将父控件作为表单提供,并尝试将其放置在非工作区中.
http://www.codeplex.com/Wiki/View.aspx? ProjectName = CustomerBorderForm& title = Painting%20NonClient%20Area [ ^ ]
http://www.codeplex.com/Wiki/View.aspx?ProjectName=CustomerBorderForm [ ^ ]
http://www.geekswithblogs.net/kobush/articles/CustomBorderForms.aspx [ ^ ]
Similar question asked and answered here: Draw a textbox in title bar using c# windows application [^]
It says:
You are trying to attach controls to the non-client area of the Form. Here are a couple of articles that do it, but none of them are attaching a windows control to the area. You should be able to create a windows control and provide the parent as the form and try to place it in the non-client area
http://www.codeplex.com/Wiki/View.aspx?ProjectName=CustomerBorderForm&title=Painting%20NonClient%20Area[^]
http://www.codeplex.com/Wiki/View.aspx?ProjectName=CustomerBorderForm[^]
http://www.geekswithblogs.net/kobush/articles/CustomBorderForms.aspx[^]
这篇关于如何在标题栏中创建文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文