![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Busy .NET control repaint color Hi All, Did you ever see a control very busy doing something: yes it is usually completely white and the wait cursor is spinning. We are looking for a trick to change the solid white color with the parent background color. We tried changing the BackColor to something different but didn't help. Any idea? Thanks, Alberto |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Busy .NET control repaint color not sure if this will work for you I used to put this in the worker thread to releasethe queue. http://msdn.microsoft.com/en-us/libr....doevents.aspx "Alberto Bencivenni" wrote: Quote: > Hi All, > > Did you ever see a control very busy doing something: yes it is > usually completely white and the wait cursor is spinning. > > We are looking for a trick to change the solid white color with the > parent background color. We tried changing the BackColor to something > different but didn't help. > > Any idea? > > Thanks, > > Alberto > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Busy .NET control repaint color Hi Guys, Sorry for the delay but I lost this first post. We can't help the control because it is interacting in a complex infrastructure. Just wanted to know if there is a way to do it. If we set the form background color to Gray we get the form filled in black... Why?!? Thanks, Alberto |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Busy .NET control repaint color Glen, The DoEvents suggestion is nice, what happend if we call Application.DoEvent from inside a UserControl DLL: will it flush only the DLL events or all the application ones? Suppose you are filling a listbox with millions of items, what happens if you call Application.DoEvents every AddItem? Will the speed decrease considerably? Thanks, Alberto |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Busy .NET control repaint color "Alberto Bencivenni" <info@xxxxxx> wrote in message news:bbee7eff-0a13-4ebb-b937-17259f032c7b@xxxxxx Quote: > Glen, > > The DoEvents suggestion is nice, what happend if we call > Application.DoEvent from inside a UserControl DLL: will it flush only > the DLL events or all the application ones? > > Suppose you are filling a listbox with millions of items, what happens > if you call Application.DoEvents every AddItem? Will the speed > decrease considerably? > > Thanks, > > Alberto > If you are filling a listbox with millions of items, then look at ListBox.BeginUpdate & ListBox.EndUpdate. I would question whether a user can select an item adequately well from a listbox with a million items. -- Mike |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Busy .NET control repaint color Mike, The listbox was an example, of course. BTW, it looks like a provident usage of DoEvents will help a lot. Thanks again for the suggestion. Alberto |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Busy control fill color | .NET General | |||
| Tab Control Color | .NET General | |||
| no color settings for nVidia control panel | Vista General | |||
| Control Panel/ Color Scheme doesn't work:( | Vista performance & maintenance | |||