帮助将组合框选择的文本更改为另一个值 [英] Help changing the combobox selected text to another value
问题描述
大家好,
这是我的第一篇文章,对VB 2010有一些经验.
想知道是否有人可以帮助我解决Combobox问题.
基本上,我希望将一个项目放在组合框"中,比如说"Monday",当我按下按钮时,希望将其显示为文本框的较短版本,例如"Mon".
因此,基本上只是寻找组合框项目要输出为较短的版本.
在此先感谢:)
Hi all,
This is my first post and have some experience with VB 2010.
Was wondering if someone could help me with a Combobox issue.
Basically i wish to put an Item in my Combobox such as lets say "Monday", when i push a button i wish for it to display that into a textbox as a shorter version such as "Mon".
So basically just looking for the combobox Item to be outputted as a shorter version.
Thanks in advance :)
推荐答案
,您可以使用
String.SubStr()
函数.
还是您想要像星期一->这样的省略号(...) mon…
请提供更多详细信息.
function.
Or do you want ellipsis (...) like monday-> mon…
please provide more details..
这篇关于帮助将组合框选择的文本更改为另一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!