Home All Groups Group Topic Archive Search About

Clearing Combobox without clearing text box

Author
20 Mar 2006 10:37 AM
Hashim
Is it possible to clear a combobox without clearing the text box in
VB6.
There are about 1000 items there in the combo and it is loaded from a
database (manually loaded using additem method).
If I am using the removeitem option the program gets very slow
I am using the combo box's simple combo style.

Anyone can help me? please ...................



--
Hashim K.A

Author
20 Mar 2006 11:02 AM
Robert
Get the text and cursor position (SelStart, SelLen), clear the combo, then
restore the text and cursor position.
Should do what you want.

Robert

Show quoteHide quote
"Hashim" <mail.has***@gmail.com> wrote in message
news:1142851054.600760.147320@t31g2000cwb.googlegroups.com...
> Is it possible to clear a combobox without clearing the text box in
> VB6.
> There are about 1000 items there in the combo and it is loaded from a
> database (manually loaded using additem method).
> If I am using the removeitem option the program gets very slow
>  I am using the combo box's simple combo style.
>
> Anyone can help me? please ...................
>
>
>
> --
> Hashim K.A
>