VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

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

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




Combobox add item

 

Combobox add item

paperclipmuffin

3 Jul, 2009 - 07:09 PM
Post #1

WinWinWinWindows?
Group Icon

Joined: 16 Apr, 2009
Posts: 883



Thanked: 9 times
Dream Kudos: 400
My Contributions
Hi all,

VERY simple question: In vb6, to add a combobox item, you simply say:
CODE

Combo1.AddItem

All easy enough. But how do you do that in VB .NET?

Thanks in advance.

User is online!Profile CardPM
+Quote Post


eker676

RE: Combobox Add Item

3 Jul, 2009 - 08:09 PM
Post #2

C++ Programmer
Group Icon

Joined: 18 Apr, 2009
Posts: 652



Thanked: 68 times
Dream Kudos: 25
My Contributions
ComboBox1.Items.Add
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: Combobox Add Item

4 Jul, 2009 - 04:57 AM
Post #3

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
vb.net
ComboBox1.Items.Add("some text")

or
vb.net
ComboBox1.Items.Add(TextBox1.Text)

User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 11:05PM

Live VB.NET Help!

Be Social

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

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month