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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to write a program that shows bmp files on visual basic. where can i get some help on coding?
 
You can load a bitmap straight into an Image control:

Image1.Picture = LoadPicture(c:\bitmap.bmp)

or a PictureBox control:

Picture1.Picture = LoadPicture("bitmap.bmp").

For me the Image control is better because it repaints faster but apparently the PictureBox control does more. You can always look somewhere like this for more:


Enjoy

elziko
 
Hi,

A few quick differences between an image and picturebox control are that a picturebox can contain other controls, a picturebox can scale.

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top