Monday, March 28, 2011

How to load picture using Picture box component

This is a sample program on how to load a picture using PictureBox component. Hope this one helps you.
The following is the sample code of the program above.


Private Sub Command1_Click()
Picture1.Picture = LoadPicture("C:\Documents and Settings\Yves\Desktop\clients_icon.jpg")
End Sub

Note:
    - the texts inside the double quote (" ") is the path of your image that you want to load.


Happy Coding! :)

1 comment:

  1. Picture1.Picture = LoadPicture("D:\myPictures\flowers.jpg")


    pre anu bang declarations kailangan jan hindi nmn kse gumagana

    ReplyDelete