|
-
Jan 5th, 2009, 02:29 AM
#1
Thread Starter
Fanatic Member
[2008] MDI form gradient
Hello Everyone,
A week ago I had made a post as to how can I change a form's backcolor to gradient one. I did get help from you guys and a small code which did the job.
The code (VB.Net) -
e.Graphics.FillRectangle(New Drawing.Drawing2D.LinearGradientBrush(New PointF(Me.Width, 0), New PointF(Me.Width, Me.Height), Color.FromArgb(0, 58, 140), Color.FromArgb(0, 215, 255)), New RectangleF(0, 0, Me.Width, Me.Height)) 'fade from left to right
This code changes the form's background to a gradient one. It workes fine.
Now I want this to take place in an MDI form which will be a container for other forms.
If I turn option IsContainer = False then it works but otherwise it does now.
Can anyone tell me how can I change backcolor of MDI Form to a gradient one ?.
Thank you ,
Cheers,
GR
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|