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.
Syncfusion Feedback

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

Thread ID:




1119 Sep 24,2002 07:55 AM UTC Windows Forms 0
Tags: FAQ
Asked On September 24, 2002 07:55 AM UTC

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


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.

Warning Icon 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.Close Icon