Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PropertyBag

Posted on 1997-11-25
5
Medium Priority
?
212 Views
Last Modified: 2008-03-10
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.
0
Comment
Question by:ndb
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:mrmick
ID: 1442397
You'll find you answer in the Microsoft VB Knowledgebase: Q161094
0
 
LVL 1

Author Comment

by:ndb
ID: 1442398
I don't want a property page, I want imediatly a browser or performing another command.
0
 
LVL 6

Expert Comment

by:anthonyc
ID: 1442399
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
   .showopen
   if err = 0 then
      text1.text = .filename
   end if
end with
0
 
LVL 1

Author Comment

by:ndb
ID: 1442400
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.
0
 
LVL 6

Accepted Solution

by:
anthonyc earned 200 total points
ID: 1442401
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question