can you please help me how to insert a picture background.please give some example of vb6 source code regarding with inserting picture backgorund.

Recommended Answers

All 2 Replies

Hi,

Use This Code:

Me.Picture = LoadPicture("C:\MyPict.bmp")


Regards
Veena

hi,

While u directly load a picture to the form background, if the picture is small or big than the form size cannot be modify. So use image box to expand the size of the image to the form size.

Thru Properties

To insert a picture in to the image box use picture property and to enlarge the image box with image use set strech property true.

Thru coding

image1.picture=loadpicture("c:\img1.jpeg")
image1.stretch=true

Regards
Shailu

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.