Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

On my windows form, I have two comboboxes, one is above the other. When an item is selected in the first combobox, it fills the second with data pertaining to that selection.

 

When I run my program on Windows 2000 and Windows 98 the top combobox's drop down menu seems to erase the combobox below it. You can see "behind" where the combobox should be. You can still select the combobox and a drop down menu appears, but you can't scroll through it.

 

Any thoughts would be greatly appreciated.

  • *Experts*
Posted

I don't understand.. could you attach a small, appropriately sized screenshot of what happens?

 

Do you have any specialized OnPaint overrides, or any style that you are setting to the form (using SetStyle, such as UserPaint)?

Posted

Thanks for the replies:

 

Volte: I'm not overiding anything. On XP machines there seems to be no problem with the display. I'm not on the right computer right now, but I will post a screenshot tomorrow.

 

Pentium: Yea it's messy, but i want to know why it's happening :)

Posted

Thanks for the suggestion. I tried updating video drivers but still had the same problem; however, I think I have fixed the situation.

 

The datasource for my combobox was an arraylist that I created programmatically, and would change every time the customer was changed. A Master-Detail type deal. Anyway, I would :

 cmbopart.datasource = nothing 

each time it was changed. I changed this to

 cmbopart.databindings.clear()

and this seems to have corrected the situation on all test platforms.

 

Thanks for all the help and suggestions.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...