Screen refresh issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RSH

    Screen refresh issue

    Hi,

    I have a Windows form that has several ComboBoxes on it. I would like to be
    able to clear the existing values when the user clicks on the Clear button,
    and then I need some of the Combos to be disabled. The problem I am having
    is that all of the Combo boxes retain their last selected value on screen.

    cmbAccessTable. Items.Clear();

    cmbAccessTable. Enabled = false;

    cmbSQLDatabase. Items.Clear();

    cmbSQLDatabase. Enabled = false;

    cmbSQLTable.Ite ms.Clear();

    cmbSQLTable.Ena bled = false;



    How do I clear them?????



    Thanks,

    Ron


  • Chris

    #2
    Re: Screen refresh issue

    RSH wrote:[color=blue]
    > Hi,
    >
    > I have a Windows form that has several ComboBoxes on it. I would like to be
    > able to clear the existing values when the user clicks on the Clear button,
    > and then I need some of the Combos to be disabled. The problem I am having
    > is that all of the Combo boxes retain their last selected value on screen.
    >
    > cmbAccessTable. Items.Clear();
    >
    > cmbAccessTable. Enabled = false;
    >
    > cmbSQLDatabase. Items.Clear();
    >
    > cmbSQLDatabase. Enabled = false;
    >
    > cmbSQLTable.Ite ms.Clear();
    >
    > cmbSQLTable.Ena bled = false;
    >
    >
    >
    > How do I clear them?????
    >
    >
    >
    > Thanks,
    >
    > Ron
    >
    >[/color]

    cmbAccessTable. Items.Clear();
    cmbAccessTable. SelectedText = "";
    cmbAccessTable. Enabled = false;

    I think that's the property you have to clear. I could be wrong on the
    name, but I know it has "Text" in it.

    Chris

    Comment

    Working...