We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

how do i set a initial value of a combobox from a list of values of a combo box

Thread ID:

Created:

Platform:

Replies:

1119 Sep 24,2002 03:55 AM Windows Forms 0
loading
Tags: FAQ
itisme
Asked On September 24, 2002 03:55 AM

hi all, I'm adding some elements to a combo box and I want to set one of its value as a initial value. I wrote the following code, but it is not setting '2' as initial value.Is it correct or not ? Is theie any solution to this ? cmb1.Items.Add ( "1" ); cmb1.Items.Add ( "2" ); cmb1.Items.Add ( "3" ); cmb1.Items.Add ( "4" ); strselval = "2"; cmb1.Text = strselval; regards. lat

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;