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 control fill color

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


 
 

Busy control fill color

Hi All,


Did you ever see a control very busy doing something? Yes, it is
completely white and the wait cursor is spinning.

We want to change the white color with somethign else, is it possible
someway?

Thanks,

Alberto


My System SpecsSystem Spec
Old 12-12-2008   #2 (permalink)
Family Tree Mike


 
 

Re: Busy control fill color

"Alberto Bencivenni" <info@xxxxxx> wrote in message
news:b1b65522-b908-4476-8281-ec0401fe75b1@xxxxxx
Quote:

> Hi All,
>
>
> Did you ever see a control very busy doing something? Yes, it is
> completely white and the wait cursor is spinning.
>
> We want to change the white color with somethign else, is it possible
> someway?
>
> Thanks,
>
> Alberto
>

Did you try the suggestions to your previous post?

--
Mike

My System SpecsSystem Spec
Old 12-12-2008   #3 (permalink)
Stanimir Stoyanov


 
 

Re: Busy control fill color

Alberto,

You can look into splitting the work of your application into threads. This
will ensure that the UI of the control will continue to be rendered while
the actual CPU-intensive work is off-loaded. Here is an article, which will
give you a low-level insight on threading:
http://www.codeproject.com/KB/thread...dinginnet.aspx, while
http://msdn.microsoft.com/en-us/libr...undworker.aspx
explores the BackgroundWorker component which gives a high-end interface for
you to use.

--
Stanimir Stoyanov
http://stoyanoff.info

"Alberto Bencivenni" <info@xxxxxx> wrote in message
news:b1b65522-b908-4476-8281-ec0401fe75b1@xxxxxx
Quote:

> Hi All,
>
>
> Did you ever see a control very busy doing something? Yes, it is
> completely white and the wait cursor is spinning.
>
> We want to change the white color with somethign else, is it possible
> someway?
>
> Thanks,
>
> Alberto
>
My System SpecsSystem Spec
Old 12-13-2008   #4 (permalink)
Alberto Bencivenni


 
 

Re: Busy control fill color

Stanimir,

The busy work is just in repaint so there is no way to put everything
on a different thread...

Any other option or article that explain in details what happens in
these situations?

Thanks,

Alberto

My System SpecsSystem Spec
Old 12-13-2008   #5 (permalink)
Stanimir Stoyanov


 
 

Re: Busy control fill color

You might want to consider optimizing the repainting. Why exactly is the
repaint process so CPU-intensive?

If you could include an appropriate code excerpt, we could give more
accurate suggestions.
--
Stanimir Stoyanov
http://stoyanoff.info

"Alberto Bencivenni" <info@xxxxxx> wrote in message
news:6c4294a0-5763-4755-b0ed-c3bf0d142ca5@xxxxxx
Quote:

> Stanimir,
>
> The busy work is just in repaint so there is no way to put everything
> on a different thread...
>
> Any other option or article that explain in details what happens in
> these situations?
>
> Thanks,
>
> Alberto
>
My System SpecsSystem Spec
Old 12-15-2008   #6 (permalink)
Alberto Bencivenni


 
 

Re: Busy control fill color

Stanimir,

It has to do with OpenGL that it tight to window Handle, so there
isn;t much to do.

Thanks,

Alberto
My System SpecsSystem Spec
Old 12-15-2008   #7 (permalink)
Leon Lambert


 
 

Re: Busy control fill color

Apply gamer techniques. Do your drawing into an off screen bitmap and
just have you paint routine use the off screen bitmap to update the on
screen one. Following is what my paint routine looks like in the
animated map program i made.

// The map handler draws everything into a bit map on a rate
// The control just bit blitz it here.
private void MapControl_Paint(object
sender,System.Windows.Forms.PaintEventArgs e)
{
Bitmap map = mapHandler.Map; // get off screen bitmap
if(map != null)
e.Graphics.DrawImage(map,0,0,map.Width,map.Height);
}

Hope that helps.
Leon Lambert

Alberto Bencivenni wrote:
Quote:

> Stanimir,
>
> It has to do with OpenGL that it tight to window Handle, so there
> isn;t much to do.
>
> Thanks,
>
> Alberto
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Busy .NET control repaint 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
Color Management Applet in Control Panel Vista music pictures video


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