Create a 'BROWSE' Button

Fred75

New member
Local time
Today, 07:17
Joined
Mar 30, 2005
Messages
8
Hello All,

Could someone give me a few pointers on how to create a 'Browse' button on a form with the intent to search for an image in an bound-image to record and assign it and store the bmp selected by the user from the user's machine?

I thank you in advance.
 
You'll find a lot of expert programmers on this forum would strongly advise that you don't store (embed) pictures in your database. Can you just store the path? Will other users need to access the picture from the database? If so, you could copy it to a subfolder in the db folder and then store the link. Then use an empty image control on your form and update its .Picture property in the OnCurrent event of the form.
 
Check this thread for an example of using CommonDialog to browse for things.
 
I advise against using the CommonDialog control to browse for a file or directory. Using an API has a lot of advantages. Check this thread out for a working sample you can import into your application...

Browse [Find a directory or file]

I also advise that you search for an answer to your quest before posting because your question has been discussed in a ton of threads on this forum.
 
Apologies, I posted the wrong link. I meant to get one that uses the Windows Common Dialog API, like GHudson's sample database.
 
Thanks!

Good pointers. Thank you guys for your time and assistance!
 

Users who are viewing this thread

Back
Top Bottom