View Single Post
Old May 21st, 2006, 4:43 AM   #4
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Can you be more specific what don't you understand, any ways here is a little guide to help you:

okay on the menu bar goto project click it, then click the sub menu "Components", then the components dialog box would come up, now scroll down and select Microsoft Common Dialog Control x(x= what version number you are using) check the check box next to its name and then click apply.Click Close to get back to form. Now you should see a new control on the ToolBox called "CommonDialog", put it onto the form, using the properties window change its name to "OpenDialog", now put the picture box onto the form, and also put a command button onto the form. Double click the command button(to get to its command_click event), and put this code into the Command_Click Event:

Quote:
OpenDialog.Filter = "Bitmaps (.bmp)|*.bmp"
OpenDialog.ShowOpen
Form1.Caption = OpenDialog.FileName
Picture1.Picture = LoadPicture(OpenDialog.FileName)
kruptof is offline   Reply With Quote