Results 1 to 8 of 8

Thread: text editor: open dialog [resolved]

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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:
    1. Private Sub menu_open_Click()
    2.   CommonDialog1.Filter = "PHP (*.PHP;*.PHP3;*.PHTML;*.TXT) | *.php;*.php3;*.phtml;*.txt"
    3.   CommonDialog1.CancelError = False
    4.   CommonDialog1.ShowOpen
    5. 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.
    Like Archer? Check out some Sterling Archer quotes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width