Visual Studio 2012 combobox and textbox -


friends, have combo box , text box. want when choose combobox, automatically textbox filled automatically autogenerate number in textbox, "an example: chose combobox letter" m ", want in textbox appear" m.0001 ", please support master, , ?? using visual studio 2012

you can set text shown in textbox using

textboxname.text = "your text" 

and can read combobox text using

string s = combobox1.text; 

well thing need listener. can use listener of combobox called "selectedindexchanged". fire whenever select element in combobox:

http://msdn.microsoft.com/de-de/library/system.windows.forms.combobox.selectedindexchanged(v=vs.110).aspx

so have combine these 3 things. if tell me programming language use, give short code snippet.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -