Tom:
Make sure that the ClipControls Property of the form
is set to True for the form that has the combo box.
This makes sure that the entire object is re-painted.
Also it is good to have the latest service packs of
visual studio installed( if you are not up to date
with the SPs)
All the best !
Binu
--- "Regan, Tom" <TRegan@P...> wrote:
> I'm having a problem with the VB combo box leaving
> ghost images after it is
> closed.
>
> The combo box style is dropdown list. When it drops
> down the combo box
> items overlay some other controls (a textbox and a
> datagrid). When the
> combo box closes, the controls that were underneath
> the dropdown list and
> the form iteself do not always repaint; sometimes
> they stay hidden
> underneath a ghost image of the combo box items.
>
> I call the "Refresh" method on the form, textbox,
> and datagrid in the combo
> box Validate event, and that clears away the ghosts
> , but I wonder if there
> is a better solution. "DoEvents" does not have any
> effect.
>
> The problem occurs both when I'm running the app in
> the VB IDE and from the
> compiled executable.
>
> Tom Regan
> senior application developer
>
> pmh caramanning inc.
> 34705 W. 12 Mile Rd.
> Farmington Hills, MI 48331-3261
> xxx-xxx-xxxx
> fax: xxx-xxx-xxxx
> email: tregan@p... <mailto:tregan@p...>
> www.pmh.com
>