Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to embed Picture on MDI Form?

Status
Not open for further replies.

TroyMcClure

Technical User
Oct 13, 2003
137
0
0
US
I have an MDI form where, in design view, there is a picture background. I know I can set the .Picture property at runtime, but how do I change this at design time so that:

A. When I open the project I don't have to look at that picture.

And...

B. So I don't have to ship the actual new .jpg as a separate file in the setup.
Thanks,
--T
 
Never mind...I didn't see the Picture property in the property box...I was just scanning for a long path, and didn't see (Bitmap) as the item.
--T
 
Use an ImageList control to store the image. Then when you want to show the image set the picture property to the required image in the list. For example

Code:
Private Sub MDIForm_Load()

Set Me.Picture = ImageList1.ListImages(1).Picture

End Sub
 
If you don't want to ship .jpg files as separate files, put them in a resource file. If you read up on LoadResPicture you should be able to pick up what's necessary to implement this.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top