Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 Questions for the wise

Status
Not open for further replies.

Mats

Technical User
Feb 18, 2000
83
EU
I'm quite new to VB, so I hope these questions are easy to find an answer to:

1. The 'SHBrowseForFolderA' function from lib 'shell32' works fine in MS Access but not at all in VB, why?

2. How to return the date from a calender control on a separate form (or any other variable). At the moment I'm using a global variable to pass information between forms, is this a good solution? (I've been trying to understand linking wihout success...)

3. How to automatically select the text when entering a textbox? Currently I use code for every textbox (selstart=0, sellength=len(text)). Is there any easier way to do this for all textboxes on a form?

Thanks a lot for any answers,

Mats
 
3. Name all textboxes on a form with the same name, ie : txtField. VB will ask if you would like to create control array. Choose yes. Now in txtField_GotFocus event you can put your code above at the top of procedure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top