selection of a combo box shows other buttons
-
Hi, Looking for code to show after selecting from a combo box 3 other combo boxes and a submit button Thanks, Daniela
-
Hi, Looking for code to show after selecting from a combo box 3 other combo boxes and a submit button Thanks, Daniela
-
Make the visible property false at start up and then in the combobox_selectindex method make all controll's visible property true. Rahul Kulkarni
Hi again, I'm quite fresh here - so could you please be more specific about "combobox_selectindex method make all controll's visible property true" ? Thanks, danish_bear
-
Hi again, I'm quite fresh here - so could you please be more specific about "combobox_selectindex method make all controll's visible property true" ? Thanks, danish_bear
-
Hi, Looking for code to show after selecting from a combo box 3 other combo boxes and a submit button Thanks, Daniela
Hi Daniela, If I read your request right, you want something like this perhaps? private void Form1_Load(object sender, EventArgs e) { //some magic code you need at form initialization goes here //probably code that populates the combo boxes with whatever //values you need at startup or populate on the fly as in the //below event handler //Set your form objects to be hidden or alternatively, you can //set them to be hidden when they're initially created MySecondComboBox.Visible = false; MyThirdComboBox.Visible = false; MyFourthComboBox.Visible = false; MySubmitButton.Visible = false; } private void MyFirstComboBox_SelectedIndexChanged(object sender, EventArgs e) { //populate the combo boxes before making them visble PopulateMySecondComboBox(); PopulateMyThirdComboBox(); PopulateMyFourthComboBox(); //now make them visble MySecondComboBox.Visible = true; MyThirdComboBox.Visible = true; MyFourthComboBox.Visible = true; MySubmitButton.Visible = true; } There's supporting code for all this of course, but I will leave that to you. Hope this helps! Mike Poz
-
Hi Daniela, If I read your request right, you want something like this perhaps? private void Form1_Load(object sender, EventArgs e) { //some magic code you need at form initialization goes here //probably code that populates the combo boxes with whatever //values you need at startup or populate on the fly as in the //below event handler //Set your form objects to be hidden or alternatively, you can //set them to be hidden when they're initially created MySecondComboBox.Visible = false; MyThirdComboBox.Visible = false; MyFourthComboBox.Visible = false; MySubmitButton.Visible = false; } private void MyFirstComboBox_SelectedIndexChanged(object sender, EventArgs e) { //populate the combo boxes before making them visble PopulateMySecondComboBox(); PopulateMyThirdComboBox(); PopulateMyFourthComboBox(); //now make them visble MySecondComboBox.Visible = true; MyThirdComboBox.Visible = true; MyFourthComboBox.Visible = true; MySubmitButton.Visible = true; } There's supporting code for all this of course, but I will leave that to you. Hope this helps! Mike Poz
Yes - I could use this (: Thanks !!!! Daniela danish_bear