combobox.text

  • Thread starter Finn Stampe Mikkelsen
  • Start date
F

Finn Stampe Mikkelsen

Hi

I've encountered a strange problem. Strange in my mind anyway..

In my app, i use some comboboxes and fill them up from a table. After
filling, i put "Please Select" in the combobox.text property. This works
fine. I use the DropDownClosed event to handle selection in the box, after
which the routine filling up the comboboxes run again. The second time round
though, the text "Please Select" does not show and i'm puzzled as to why
this is...

Any idea??

/Finn
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary and those who
don't.
Es gibt 10 Arten von Menschen. Die, die Binär verstehen, bzw. die, die es
nicht tuhen.
 
J

Jeff Gaines

Hi

I've encountered a strange problem. Strange in my mind anyway..

In my app, i use some comboboxes and fill them up from a table. After
filling, i put "Please Select" in the combobox.text property. This works
fine. I use the DropDownClosed event to handle selection in the box, after
which the routine filling up the comboboxes run again. The second time
round though, the text "Please Select" does not show and i'm puzzled as to
why this is...

Any idea??

/Finn

You will need to add 'Please Select' each time after the Combo has been
re-filled.
 
F

Finn Stampe Mikkelsen

Jeff Gaines said:
You will need to add 'Please Select' each time after the Combo has been
re-filled.

Hi Jeff

I know that. The DropDownClosed call's the routine that originally did the
filling with "Please Select". Both situations do excactly the same thing,
since it's the same code running.

/Finn
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary and those who
don't.
Es gibt 10 Arten von Menschen. Die, die Binär verstehen, bzw. die, die es
nicht tuhen.

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top