Solved

PropertyBag

Posted on 1997-11-25
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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
Course of the Month8 days, 23 hours left to enroll

615 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