Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

asked on

Combox question

Hi,

In the settings.settins file I have 1 setting:

IsMOLL +  bool + user + false

 On my dialogform I have a combobox called cbSwGlcs.

In the load-event I need to do this with the comobox:

IF  (Properties.Settings.Default.IsMOLL)
{
   //zet de combobox to item 0
}
else
{
   //zet de combobox to item 1
}

How can I do that?

Greetings,

Peter Kiers
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
*Didn't see you supplied the name of the ComboBox.

So it would be:

    cbSwGlcs.SelectedIndex = 0;

and:

    cbSwGlcs.SelectedIndex = 1;