Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Combo+GroupBox

Combo+GroupBox

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KORCARI
    wrote on last edited by
    #1

    How to make possible the activation of group-box controls by choosing one of the options in combo-box list? Best regards

    E R 2 Replies Last reply
    0
    • K KORCARI

      How to make possible the activation of group-box controls by choosing one of the options in combo-box list? Best regards

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      Look at the documentation first, then come ask questions. DOCUMENTATION[^] Looks like OnSelectedItemChanged or OnSelectedValueChanged should work quite well for you.

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      1 Reply Last reply
      0
      • K KORCARI

        How to make possible the activation of group-box controls by choosing one of the options in combo-box list? Best regards

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #3

        Not sure what you mean by activation. I think you may be referring to either enabled or visible. Lets say it's the enabled property of the GroupBox. First you need to catch the SelectedIndexChanged event of the ComboBox, evalutate the selection and determine if the GroupBox should be enabled

        private void MyComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
        MyGoupbox.Enabled == (MyComboBox.SelectedValue == criteria);
        }

        Excuse the pseudocode but i think you get the idea

        "You get that on the big jobs."

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups