I have build my own control in vb5. That control needs a databasefile that the user can choose. I 've build some extra properties and indeed, the user can see them when he or she is designing the program with my control. The problem is that the user must give the filename by the hand. How can I put a commandbutton on the right side of the textbox so the user will get a browser to pick up his or her file. I would also like to link  some other events to these buttons, not only the browsefunction.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You'll find you answer in the Microsoft VB Knowledgebase: Q161094
ndbAuthor Commented:
I don't want a property page, I want imediatly a browser or performing another command.
Add the button.....   add a commondialog control to your form/usercontrol.   When the button is clicked, you can set the properties of the commondialog like this

with commondialog1
   .title = "Pick File"
   .filter = "MDBs (*.mdb)|*.mdb"
   'look for help on the commondialogcontrol
   .cancelerror = true
   on local error resume next
   if err = 0 then
      text1.text = .filename
   end if
end with
ndbAuthor Commented:
As I just said, I don't want to have a propertypage! The example that you just gaved works with propertypage, I knew that before, but I don't want propertypages.
And I read, I know you didn't want a property page.  This would work either way, but I am not going to help anymore if you are going to have an attitude.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.