Click here to Skip to main content
15,894,180 members
Home / Discussions / C#
   

C#

 
GeneralStrange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 12:41
professionalAnders Molin23-Mar-04 12:41 
GeneralRe: Strange problem with ownerdraw listbox Pin
Heath Stewart23-Mar-04 13:05
protectorHeath Stewart23-Mar-04 13:05 
GeneralRe: Strange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 13:22
professionalAnders Molin23-Mar-04 13:22 
GeneralRe: Strange problem with ownerdraw listbox Pin
Heath Stewart23-Mar-04 13:37
protectorHeath Stewart23-Mar-04 13:37 
GeneralRe: Strange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 13:40
professionalAnders Molin23-Mar-04 13:40 
GeneralRe: Strange problem with ownerdraw listbox Pin
Heath Stewart23-Mar-04 13:48
protectorHeath Stewart23-Mar-04 13:48 
GeneralRe: Strange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 13:53
professionalAnders Molin23-Mar-04 13:53 
GeneralRe: Strange problem with ownerdraw listbox Pin
Heath Stewart23-Mar-04 13:56
protectorHeath Stewart23-Mar-04 13:56 
All those list-type views are always funky when it comes to painting.

It's a bit of a hack, but how about calling Refresh (invalidates and forces an immediate update) in an override to Visible (when set to true) or something along those lines.

Sorry for all the responses. I've just never seen this behavior before, and I've seen (and usually fix) a lot of painting bugs (the ubiquitous ListView being the usual suspect).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Strange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 14:00
professionalAnders Molin23-Mar-04 14:00 
GeneralRe: Strange problem with ownerdraw listbox Pin
Anders Molin23-Mar-04 14:16
professionalAnders Molin23-Mar-04 14:16 
GeneralSerialization Pin
Not Active23-Mar-04 10:06
mentorNot Active23-Mar-04 10:06 
GeneralRe: Serialization Pin
Heath Stewart23-Mar-04 10:37
protectorHeath Stewart23-Mar-04 10:37 
GeneralRe: Serialization Pin
Not Active23-Mar-04 10:48
mentorNot Active23-Mar-04 10:48 
GeneralC#->C++ Interface Issue - Passing Data Pin
Chris_Lutz23-Mar-04 7:58
Chris_Lutz23-Mar-04 7:58 
GeneralRe: C#->C++ Interface Issue - Passing Data Pin
Heath Stewart23-Mar-04 9:04
protectorHeath Stewart23-Mar-04 9:04 
GeneralDetect new running process Pin
Apusnaias23-Mar-04 5:53
Apusnaias23-Mar-04 5:53 
GeneralRe: Detect new running process Pin
Dave Kreskowiak23-Mar-04 6:12
mveDave Kreskowiak23-Mar-04 6:12 
GeneralRe: Detect new running process Pin
Heath Stewart23-Mar-04 9:16
protectorHeath Stewart23-Mar-04 9:16 
GeneralRe: Detect new running process Pin
Apusnaias23-Mar-04 11:22
Apusnaias23-Mar-04 11:22 
GeneralRe: Detect new running process Pin
Dave Kreskowiak23-Mar-04 11:46
mveDave Kreskowiak23-Mar-04 11:46 
GeneralRe: Detect new running process Pin
Apusnaias23-Mar-04 23:30
Apusnaias23-Mar-04 23:30 
GeneralRe: Detect new running process Pin
ian mariano23-Mar-04 11:20
ian mariano23-Mar-04 11:20 
GeneralRe: Detect new running process Pin
Robert M Greene26-Oct-04 7:39
Robert M Greene26-Oct-04 7:39 
GeneralGraphics.MeasureString Pin
compbssn200323-Mar-04 5:30
compbssn200323-Mar-04 5:30 
GeneralRe: Graphics.MeasureString Pin
Heath Stewart23-Mar-04 5:33
protectorHeath Stewart23-Mar-04 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.