disable a value from a combo box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prokopis
    New Member
    • Nov 2007
    • 30

    disable a value from a combo box

    am using c# for windows application and i need some help.
    i have a combo box that is connected with the database and retreive the data from a table in the database.this tha i need is if is possible when i selected one of the values from the combo box that certain value to me disable and the user will not be able to used it again.i don't want to remove it but just to disable and not be for use.
    is this able or not???
  • maheshmrk22
    New Member
    • Dec 2007
    • 23

    #2
    Hi,
    That is 100% possible. If you put your code and explaination that on what value do you want to disable it then i can suggest you something in coding.

    Thanks
    Mahesh



    Originally posted by prokopis
    am using c# for windows application and i need some help.
    i have a combo box that is connected with the database and retreive the data from a table in the database.this tha i need is if is possible when i selected one of the values from the combo box that certain value to me disable and the user will not be able to used it again.i don't want to remove it but just to disable and not be for use.
    is this able or not???

    Comment

    • prokopis
      New Member
      • Nov 2007
      • 30

      #3
      private void capturesymptom_ SelectedIndexCh anged(object sender, EventArgs e)
      {

      ComboBox tempname1 = (ComboBox)sende r;
      string ComboName1 = tempname1.Text;
      }

      this is the code tha i capture the selected value fo the user that select from the combo box.
      can i use any command like something.disab le=true in order the selected value not to be able to be used again?

      Comment

      Working...