943,851 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1263
  • C# RSS
Jul 6th, 2009
0

Change Background of an MDI Form

Expand Post »
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!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
S2009 is offline Offline
67 posts
since Jun 2009
Jul 6th, 2009
0

Re: Change Background of an MDI Form

You can't for sorry change it!
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Jul 6th, 2009
1

Re: Change Background of an MDI Form

It always defaults to the default background color of a control.
Reputation Points: 2035
Solved Threads: 644
Senior Poster
ddanbe is online now Online
3,738 posts
since Oct 2008
Jul 7th, 2009
0

Re: Change Background of an MDI Form

i tried something like this but it didnt work :

C# Syntax (Toggle Plain Text)
  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. }
Featured Poster
Reputation Points: 854
Solved Threads: 127
Banned
serkan sendur is offline Offline
2,057 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Dealing with Date Difference in C#
Next Thread in C# Forum Timeline: C#.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC