Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 13th, 2007, 4:38 AM   #1
metron9
Newbie
 
Join Date: Oct 2007
Posts: 16
Rep Power: 0 metron9 is on a distinguished road
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;
        }
metron9 is offline   Reply With Quote
Old Oct 13th, 2007, 10:20 PM   #2
Samuaijack
Programmer
 
Samuaijack's Avatar
 
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3 Samuaijack is on a distinguished road
check the transperancyKey property of the form
Samuaijack is offline   Reply With Quote
Old Oct 13th, 2007, 11:13 PM   #3
metron9
Newbie
 
Join Date: Oct 2007
Posts: 16
Rep Power: 0 metron9 is on a distinguished road
That was it. I had to right click the property and select Reset so non of the colors would make it transparent.

Thanks.
metron9 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix commands compatible with Windows? titaniumdecoy Bash / Shell Scripting 7 Oct 5th, 2006 7:25 AM
Need help getting started g2k556 C++ 18 Jun 4th, 2006 5:16 PM
Keep Drawing Pixels without previous ones cleared. JavaMan Java 4 Oct 27th, 2005 7:43 PM
PHP system commands ktsirig PHP 6 Oct 4th, 2005 1:24 AM
how to send commands to a prompt? acab Python 4 Apr 28th, 2005 5:20 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:55 PM.

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