Solved

PropertyBag

Posted on 1997-11-25
5
205 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 100 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug this code 7 64
Modifying Conditional Format from VBA code 3 60
RUNRMTCMD from AS/400 12 71
how to Classify of email (pdf attachments) 7 45
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 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