在分配给文本框之前自动完成要溢出的值 [英] auto complete value to be spilt before assign to text box
本文介绍了在分配给文本框之前自动完成要溢出的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i已将autocompete值绑定到textbox.i将在用户输入时获取,然后显示
ramu-1547-14-14在这里我只需将ramu绑定到文本框就可以任何人建议我。
问候,
Rahul。
Hi ,
i have binded the autocompete values to the textbox.i will get when user type s then it will show
ramu-1547-14-14 here i have to do only bind ramu to the text box could any one suggest me.
Regards,
Rahul.
推荐答案
string[] splittedValues = txtBox.Text.Split('-');
txtBox.Text = splittedValues[0]; // It will assign 'ramu' to TextBox.
这篇关于在分配给文本框之前自动完成要溢出的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文