473,378 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Display text when ComboBox is activated

BloodyThread
Hello, I am new to VB... very new, started learning two days ago.

I have a combobox and a rich text box. When I select different items in the combo box, I want some text to appear in the rtb next to it. Such as, selecting "Dog" in the combobox puts "Golden retriever, lab" and etc in the rtb.

My problems:
1) I don't know what kind of event handler would trigger the combobox. I tried a click event but it's crashing so I want to know if there's a different way :x
2) How do I find what the user selected in the combobox, so it can display stuff in the rtb accordingly? I thought it was .Items.IndexOf but nothing seems to be working so... maybe I'm wrong...

Thanks in advance...
Sep 21 '11 #1
1 1771
OMG. How did I not notice this before.
The event handler would be "DropDownClosed," I have no clue how I missed that.

Then the selection would be combobox.SelectedItem . I feel really stupid.
Sep 21 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Peter Zentner | last post by:
Hi all, is there a chance to append the text of the new selected item to the text in the textbox portion of the control? Example: textbox: "hello " new selected item: "world" new textbox...
0
by: thomaz | last post by:
I use the DataSource like below to fill a Combobox: comboBox1.DataSource = dataSet1.Tables; comboBox1.DisplayMember = "ProductName"; When the user types any keyboard key i use the DROPDOWN...
2
by: VMI | last post by:
Is it possible to display something in a combobox and store something else? For example, can I display "Query for active employees" and save the actual query in the same combobox item? That way...
0
by: yalanue | last post by:
I want to create a combobox with its displaymember populated from a datatable. But once I get it run, the default display member in the combobox is always the first row of the displaymember list....
2
by: =?Utf-8?B?Z2FuZQ==?= | last post by:
Hi, In a gridview, How can i display different columns between item and edit modes. For eg. i have a sql that returns productname, categoryname, etc. In viewmode, i need to display only...
2
by: JEKATICH | last post by:
How do I store associated data on a ComboBox item (ToolStripComboBox)? The API and MFC has a (Set/Get)ItemData(Ptr), however, I do not see any such animal in .NET. Thanks JEK
9
by: Edward | last post by:
IE6 only displays certain text on my site if you mouse over it (!). I reduced the HTML down to this code below which still shows this effect/bug. My temporary solution was to take out all the...
4
by: Jerad Rose | last post by:
I'm baffled by this -- is there not a typed object used for ComboBox Items? Best I can tell, all of the methods for ComboBox that accept an Item are of type Object. Why in the world is a...
2
by: Praveen Raj V | last post by:
I have changed the DropDownStyle property of comboBox to DropDownList. I'm unable to change the text property for comboBox. suggest an idea. comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;...
1
by: Zabivb | last post by:
Hai, Here is my code which display one items at a time in textbox, i need to display more than 1 item in a textbox. <html> <head> <script language="javascript" type="text/javascript"> ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.