background image via code

mistaken_myst

Active member
Joined
Oct 29, 2007
Messages
25
Programming Experience
Beginner
Help its urgent - ..

How can I put a background image via code for a form??

Is there & what is it, the property to prevent a Form from being resized??
 
Hi,

You can use the following code to put up a background image on a form.

VB.NET:
Me.BackgroundImage = Image.FromFile("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg", False)

I hope this helps.

Regards,

Allen Smith
Software Engineer
ComponentOne LLC
www.componentone.com
 
Last edited by a moderator:
mistaken_myst, don't double post, duplicate thread deleted. Bump your thread to put it back in focus instead, but it doesn't serve a purpose when your request was of the last 5 posts anyway. And give meaningful thread titles, title changed. "help urgent" doesn't have anything to do with the topic, everybody here need help and everybody's in hurry these days.
 
Back
Top