Home

How to disable a option of SelectBox

void Main() { 
  string[] colors = { "Red", "Green", "Violet", "Blue", "Orange", "Yellow" };
  var selectBox = new LINQPad.Controls.SelectBox(colors, onSelectionChanged: x => {
    //todo disable selected, enable other

  });
  selectBox.Dump();
}

I want to achieve like while I choose a option of a SelectBox, the selected option become disable,
Is this possible?

Comments

Sign In or Register to comment.