473,395 Members | 1,986 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,395 software developers and data experts.

ComboBox Doesn't Show Added Items

All of my efforts to add items to display in the combobox fail; I've added
items using the IDE in VS2003 (String Collection Editor) or programtically
and all I get is an empty drop down list that gets longer. The project
compiles and I get no errors but my application only shows an empty drop down
list. Can someone please tell me what I'm doing wrong?

I tried this and it just makes blank drop down longer:

comboBox1.Items.Add("Red");
comboBox1.Items.Add("Green");
comboBox1.Items.Add("Blue");

Nov 17 '05 #1
2 2179
Rich,

I do this, and it works fine for me. Can you give a more complete
example?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rich" <Ri**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
All of my efforts to add items to display in the combobox fail; I've added
items using the IDE in VS2003 (String Collection Editor) or programtically
and all I get is an empty drop down list that gets longer. The project
compiles and I get no errors but my application only shows an empty drop
down
list. Can someone please tell me what I'm doing wrong?

I tried this and it just makes blank drop down longer:

comboBox1.Items.Add("Red");
comboBox1.Items.Add("Green");
comboBox1.Items.Add("Blue");

Nov 17 '05 #2
Hi,
Thanks for responding, I've got a solution from another group. The control
started working as normal when I turned off McAfee Buffer Overflow
Protection. It must be a bug in their antivirus software.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Rich,

I do this, and it works fine for me. Can you give a more complete
example?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rich" <Ri**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
All of my efforts to add items to display in the combobox fail; I've added
items using the IDE in VS2003 (String Collection Editor) or programtically
and all I get is an empty drop down list that gets longer. The project
compiles and I get no errors but my application only shows an empty drop
down
list. Can someone please tell me what I'm doing wrong?

I tried this and it just makes blank drop down longer:

comboBox1.Items.Add("Red");
comboBox1.Items.Add("Green");
comboBox1.Items.Add("Blue");


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Tyce | last post by:
When a button is clicked, a date is inserted or added into a combo box like this : ComboBox.Items.Add(string) or ComboBox.Items.Insert(0,string); Either way, the new string does not show up in the...
3
by: Flack | last post by:
Hello, I am beginning to write a custom combobox control. Right now it doesn't do anything special. I created a class that extends ComboBox: public class TimeSelector :...
3
by: Don | last post by:
My user control has a combobox with an arraylist attached to it along with custom add and remove methods. The "Add" method is working great. However I don't understand why the "Remove" method...
6
by: Sakharam Phapale | last post by:
Hi All, How to fill one ComboBox from other ComboBox control? 1) Only setting the reference does the trick but doesn't show items in control. If you see in immediate window, it shows...
5
by: Chaos2651 | last post by:
I have Visual Studio .NET with all of the components installed onto it. I want to add items to a combo box at run-time through numerous subroutines. I previously did it with the combo boxes AddItem...
9
by: Don | last post by:
Is there any way to detect when an item has been added to the Items collection of a combobox or listbox? I am inheriting a Combobox and want to validate items before they are added to the...
1
by: Lars Netzel | last post by:
Hi! In VB.NET want to draw my own items in a ComboBox I have added a ComboBox to the Form with this. -----------------------------------------------------------------------------------...
6
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I...
5
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I want to create a customized ComboBox where the methods ComboBox.Items.Add and ComboBox.Items.Insert will behave thusly: -- If the item is not present, add it. -- If the item is present, set the...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.