Page 1 of 1

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

Posted: Sat Apr 28, 2012 2:07 pm
by romanuel111
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!

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

Posted: Sat Apr 28, 2012 4:04 pm
by Dummy1912
well in vb.net is
Code: Select all
textbox1.text = combobox1.selecteditem
'or
combobox1.selecteditem = textbox1.text
but can't say in vb6

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

Posted: Sat Apr 28, 2012 4:37 pm
by Vikhedgehog
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