Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   I started playing with some drawing commands (http://www.programmingforums.org/showthread.php?t=14162)

metron9 Oct 13th, 2007 5:38 AM

I started playing with some drawing commands
 
is this suposeto happen? When Red and green are 255 and Blue is 0 it punches a hole in the form and you can see through it. Hmmm...

Camtasia swf movie link.

http://www.acousticlights.com/redgreenblue.html

:

private void trackBar1_Scroll(object sender, EventArgs e)
        {
            Red = trackBar1.Value;
           
            Color myColor = Color.FromArgb(Red, Green, Blue);
            button1.BackColor = myColor;

        }

        private void trackBar2_Scroll(object sender, EventArgs e)
        {
            Green = trackBar2.Value;

            Color myColor = Color.FromArgb(Red, Green, Blue);
            button1.BackColor = myColor;
        }

        private void trackBar3_Scroll(object sender, EventArgs e)
        {
            Blue = trackBar3.Value;

            Color myColor = Color.FromArgb(Red, Green, Blue);
            button1.BackColor = myColor;
        }


Samuaijack Oct 13th, 2007 11:20 PM

check the transperancyKey property of the form

metron9 Oct 14th, 2007 12:13 AM

That was it. I had to right click the property and select Reset so non of the colors would make it transparent.

Thanks.


All times are GMT -5. The time now is 3:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC