Change Background of an MDI Form

Reply

Join Date: Jun 2009
Posts: 67
Reputation: S2009 is an unknown quantity at this point 
Solved Threads: 0
S2009 S2009 is offline Offline
Junior Poster in Training

Change Background of an MDI Form

 
0
  #1
Jul 6th, 2009
Hi all,

How can I change the BACKGROUND color of the MDI FORM in C#?

I changed it using the background color property but the color is not changed.

What should I do to perform this task?

Please help me out!!

Thanks in advance!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 258
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Change Background of an MDI Form

 
0
  #2
Jul 6th, 2009
You can't for sorry change it!
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,289
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 357
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Nearly a Posting Maven

Re: Change Background of an MDI Form

 
1
  #3
Jul 6th, 2009
It always defaults to the default background color of a control.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,058
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 124
Featured Poster
serkan sendur serkan sendur is offline Offline
Banned

Re: Change Background of an MDI Form

 
0
  #4
Jul 7th, 2009
i tried something like this but it didnt work :

  1. protected override void OnPaintBackground(PaintEventArgs e)
  2. {
  3.  
  4. base.OnPaintBackground(e);
  5. Pen pen = new Pen(Color.Red, 3);
  6. Rectangle rect = new Rectangle(0, 0, 300, 300);
  7. e.Graphics.DrawRectangle(pen, rect);
  8.  
  9. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum


Views: 476 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC