project problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aartinair
    New Member
    • Jan 2010
    • 4

    project problem

    Hi every1,can any1 tell me the code in VB6 to select and display an image in a picture box at run time when a button is pressed.We have to make use of dialog control.
    Waiting for a reply.
    Thanks in advance
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    Add the common dialog control to you form and name it what you want, I prefer CD so it is real easy to go CD.ShowOpen and press F1 to read all about it in VB's help. Also, take a look at the example. Then while you are reading, look up the LoadPicture Function and see its example. Now all you need to do is to add the command button and picture box and piece together that code and if you have any problems, come back and post the code that you are having problems with.



    Good Luck

    Comment

    Working...