VB 6.0 Codes - Combo box to Textbox in the same form?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
romanuel111
Just Registered
Just Registered
Posts: 6
Joined: Sun Feb 19, 2012 1:34 pm

dunnno;

hello guys, I need your help again..

ahm, if the code to copy the characters in Textbox1 to Textbox2 is Textbox2.Text = Textbox2.Text in the same Form then

what is the code for the combobox to textbox..

because what I want is that whatsoever I choose in combobox will also show in textbox in the same Form...

I did some trial and errors but it failed..

hope you can help me guys!

thank you very much and Godbless u all!
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

well in vb.net is
Code: Select all
textbox1.text = combobox1.selecteditem
'or
combobox1.selecteditem = textbox1.text
but can't say in vb6
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
Vikhedgehog
VIP - Donator
VIP - Donator
Posts: 812
Joined: Fri Nov 05, 2010 6:24 pm

Dummy1912 wrote:
well in vb.net is
Code: Select all
textbox1.text = combobox1.selecteditem
'or
combobox1.selecteditem = textbox1.text
but can't say in vb6
yah i suggest making your next apps in vb.net
3 posts Page 1 of 1
Return to “Coding Help & Support”