|
-
Sep 14th, 2003, 02:59 PM
#1
text editor: open dialog [resolved]
I'm really new to VB, I started about two weeks ago in a class at school, but here goes:
I'm using VB 6.0, and I'm making a text editor, and I have it working fine at this point. I use a drive selector, directory box, and file box to determine what files to open. I want to have you able to click on a button labelled "open" and it will pop open a browse window, and allow you to look around your computer for an appropriately labelled file type. I think you have to make a "CommonDialog" but I'm not sure how to make one, and I'm not sure if that's even what you have to make. I was looking through a post last night and found some stuff on ListBoxes and I took some of the code there to come to making this:
VB Code:
Private Sub menu_open_Click()
CommonDialog1.Filter = "PHP (*.PHP;*.PHP3;*.PHTML;*.TXT) | *.php;*.php3;*.phtml;*.txt"
CommonDialog1.CancelError = False
CommonDialog1.ShowOpen
End Sub
So, does anyone know how to make a CommonDialog? Or a better way of doing what I want to do?
Last edited by kows; Sep 14th, 2003 at 06:15 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|