Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Loading picture from file with browse button on VB6 (http://www.go4expert.com/forums/loading-picture-file-browse-button-vb6-t23118/)

masterpee 27Aug2010 22:07

Loading picture from file with browse button on VB6
 
Add common dialog control tool 6.0 from component
Drag it to your form interface
Draw a Picture box
Name it at the property bar as dialog1
create a text box and name the text box as txtpicture
Create a command botton
Double click on the command botton

here is the code:
private sub command1_click()
dialog1.showopen
txtpicture.text = dialog1.FileName
Picture1.picture = Loadpicture (txtpicture.text)
end sub

Try it and find it real..........


All times are GMT +5.5. The time now is 21:19.