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