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

How to make a preview on a picture box?

Status
Not open for further replies.

kruxty

Programmer
Jul 17, 2001
197
PT
I have a picture box, one text box that is afected by a common button that makes a showopen on a commonddialog!
After chosing the pciture how can i a ffect the picture box and show the picture?
Tkx :eek:) kruxty
 
Hi,

I don' think that you'll get a preview working with the commondialog. But why not create a form that looks like the commondialog (with a dir and file box, a couple of buttons and a small picturebox for the preview.)
In the file1_click event load the seleted picture into the picturebox.

Good luck
Sunaj
 
No... i think that you missunderstood me!
I want to affect a picture box with some path!
for exemple:
c:\mypictures\test.jpg
and i want to show this jpg in my picture box... how can i do this?
Kruxty :eek:)
 
Hi

I don't have vb where I'm sitting right now, and I can't remember the extact syntax, but it's something like:


picture1.picture = loadpicture ("c:\tmp\myimage.jpg")


Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top