TextBox中的树事件 [英] Tree Event In TextBox

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

问题描述

hii all
我有一棵父母和他们的孩子的树,而不是在文本框中输入孩子的名字,而是想在光标位于文本框中时加载那棵树吗?
因此,我想知道应该处理什么事件来完成该任务,我试图制作(加载)文本框,但是该加载在页面的加载中.
有任何帮助吗?
谢谢alt

hii all
i have atree of parents and their childs and instead of writing the name of child in atextbox , i want to load that tree when the cursor is in the textbox, you got it?
so, i want to know what event should i handle to make that task, i tried to make (onload) of the textbox but it loaded in the load of the page .
any help, please??
thanks alot

推荐答案

如果您在页面上进行了一些更改,您可以获得相似的结果,但选择的方式却不完全相同.
当您将鼠标放在TextBox上时,您希望您的Childs Nodes Name出现在TextBox中,但是我尝试了很多,但是在ASP.NET中却无法得到此类事件,但是如果您选择TextBox Load Event并一一单击在Child Node上,则这些子节点将出现(或显示)在文本框中.您只需要在TextBox Load Event中放置以下代码.

受保护的子TextBox1_Load(ByVal发送者作为对象,ByVal e作为System.EventArgs)处理TextBox1.Load

TextBox1.Text + = TreeView1.SelectedValue& " "

结束子

试试这个....
If u make some changes in ur page u can get similar results but not exactly same way u chosed.
U want ur Childs Nodes Name appear in TextBox when u place mouse over TextBox but I tried it so much but can''t get such event in ASP.NET but if u Chose TextBox Load Event & Click on the Child Node one by one then these Child Nodes will appear (or display) in the TextBox. U have to just place following code in TextBox Load Event.

Protected Sub TextBox1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Load

TextBox1.Text += TreeView1.SelectedValue & " "

End Sub

Try this....


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

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