RegisterSearchFAQMemberlistUsergroupsLog in


How to make a Browse Button on VB6

 
Reply to topic    DVL Forum Index » General Programming View previous topic
View next topic
How to make a Browse Button on VB6
Author Message
micksemps
Moderator


Joined: 10 Jan 2008
Posts: 43

Post How to make a Browse Button on VB6 Reply with quote
open up vb6 and select your form
go to components then check windows common dialog control 6.0
place a dialog control on your form go to propertys and go to custom
select the propertys u want
insert a command button
go to the command button and enter

Code:
Private Sub Command1_click ()
commondialog1.showopen
End Sub


To put the address into a text box enter this :
Code:
Private Sub Command1_click ()
commondialog1.showopen
Text1.Text = CommonDialog1.FileName
End Sub


To only find a file like SWF put this in your filter
Code:
Shockwave Flash Object (*.swf) | (*.swf)


if any of the code above dosent work let me know and il fix it

_________________
Cool, People
AVP
1337!
Fri Mar 14, 2008 7:23 pm View user's profile Send private message MSN Messenger



Display posts from previous:    
Reply to topic    DVL Forum Index » General Programming All times are GMT
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.
This site is hosted by ChillBoards.com