Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Sir
How can we set MDI From in Background Image in Window Application c#
Help Me
Posted
Updated 13-Jul-12 16:47pm
v2
Comments
Dave Kreskowiak 13-Jul-12 23:50pm    
Come again? That doesn't make any sense. Are you asking how to set the background image of a MDI Parent form?? Why??

The entire open client area of the MDI Parent is covered by a MdiClient control completely abscuring the background of the form. You would have to get the reference to the existing MdiClient control on the form, then set it's Background property to whatever you wanted.

But, that's pretty much a moot point as the MdiClient will be covered, obscuring its background with the first MdiChild form you create.

So what's the point?

Set RightToLeftLayout property to FALSE
 
Share this answer
 
C#
this.BackgroundImage = global::shoes_showroom.Properties.Resources._1;                    this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900