Welcome to Dream.In.Code
Become a VB Expert!

Join 149,486 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,348 people online right now. Registration is fast and FREE... Join Now!




Datacombo issue!

 
Reply to this topicStart new topic

Datacombo issue!

littlerab
26 Apr, 2007 - 10:51 PM
Post #1

New D.I.C Head
*

Joined: 26 Apr, 2007
Posts: 1


My Contributions
Hi, friends,

I'm a new user for visual Basic programming.

Here I have a datacombo including some unique items(of course I also can add new items in it), together with a textbox. Now I wanna make the chosen item in datacombo or the newly added item was automatically displayed in the textbox, so pls could you give me some advice on how to meet this goal? Thanks.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Datacombo Issue!
26 Apr, 2007 - 10:56 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,302



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Use the SelectedItem method of the combobox to get what is selected.

CODE

Me.TextBox1.Text = Me.ComboBox1.SelectedItem

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:51PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month