Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Busy .NET control repaint color

Reply
 
Old 12-09-2008   #1 (permalink)
Alberto Bencivenni


 
 

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 SpecsSystem Spec
Old 12-09-2008   #2 (permalink)
Glenn


 
 

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 SpecsSystem Spec
Old 12-13-2008   #3 (permalink)
Alberto Bencivenni


 
 

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 SpecsSystem Spec
Old 12-13-2008   #4 (permalink)
Alberto Bencivenni


 
 

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 SpecsSystem Spec
Old 12-13-2008   #5 (permalink)
Family Tree Mike


 
 

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 SpecsSystem Spec
Old 12-14-2008   #6 (permalink)
Alberto Bencivenni


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46