Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Urgent Help : Re-select Combobox Value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mae Lim - 01 Apr 2005 07:49 GMT
Dear all,

I'm doing a winform project which uses "ComboBox" in one of the form. The
winform contains "ComboBox" with the values as below: -

this.ComboBox1.Items.AddRange(new object[] {"Apple", "Orange", "StrawBerry"});

Users will select on of the item from the combobox and stored into database.
Users have the rights to update this record.

The question is, how do I select the combobox value base on the value from
database?

I have used "SelectedText", "SelectedValue", but it doesn't seem to be
working.

Please Help. Thanks in advance.

Cheers,
Mae
Stephany Young - 01 Apr 2005 08:08 GMT
SelectedItem

> Dear all,
>
[quoted text clipped - 18 lines]
> Cheers,
> Mae
Mae Lim - 01 Apr 2005 10:55 GMT
SelectedItem doesn't work as well. Do you have another way?

> SelectedItem
>
[quoted text clipped - 20 lines]
> > Cheers,
> > Mae
Dick - 01 Apr 2005 11:59 GMT
SelectedItem *DOES* work...

With ComboBox1
           .Items.AddRange(New Object() {"Apple", "Orange", "StrawBerry"})
           .SelectedItem = "Apple"
End With

> SelectedItem doesn't work as well. Do you have another way?
>
[quoted text clipped - 22 lines]
> > > Cheers,
> > > Mae

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.