Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I want to set an image as background image and set that image so that it should expand when form expands.

Thanks in advance,
ArunKumar
Posted
Comments
Sergey Alexandrovich Kryukov 15-Feb-12 2:25am    
What is "expand"? Re-sample?
--SA

1 solution

Dear Friend,

panel1.BackgroundImage = Image.FromFile
   (System.Environment.GetFolderPath
   (System.Environment.SpecialFolder.Personal)
   + @"\Image.gif");


Follow the steps to do the same:-

http://msdn.microsoft.com/en-us/library/dff9f95f.aspx[^]

Hope this will help you out.
 
Share this answer
 

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