关于TextBox控件的问题 [英] a question about TextBox control

查看:52
本文介绍了关于TextBox控件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将TextBox控件添加到工具栏控件中,

我的意思是添加TextBox控件而不是ToolStripTextBox控件。



如何解决这个问题问题?

感谢您的回答。

I want to add TextBox control into toolstrip control,
I means add TextBox control not ToolStripTextBox control.

how to solve this question?
thanks for answer.

推荐答案

这是一个问题的解决方案:

Here is a solution for the question:
TextBox txt1 = new TextBox();
ToolStripControlHost host1 = new ToolStripControlHost(txt1);
toolStrip1.Items.Insert(n, host1);  //n means the position of toolstrip item





谢谢



Thanks


hi xuyunhai

如果您想要在工具提示中显示自定义内容,那么您可以发布使用Jquery API并使用ajax逻辑你也可以使用ajax请求动态加载数据

进一步参考查看下面的链接。



http://qtip1.com/demos/ [ ^ ]



http ://jqueryui.com/tooltip/ [ ^ ]



我希望这能帮到你
hi xuyunhai
as You post if you want to show customize content in your tool tip for that you can use Jquery API for it and using ajax logic you can also load data dynamically using ajax request
for furter reference check the link below.

http://qtip1.com/demos/[^]

http://jqueryui.com/tooltip/[^]

I hope this will help you out


这篇关于关于TextBox控件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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