Results 1 to 3 of 3

Thread: Three (3) Extreme "Newbie" Questions...

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Albany, OR, United States
    Posts
    10

    Post

    I recently dove into the world of VB programming(about 4 days ago), and I have a few simple, for you guys at least, questions that I was hoping someone(s) could help me out with.

    1) How do you get the Drive, Dir, and File list boxes to work together, i.e. how do you get the dirlistbox to display different contents when you switch drives in the drivelistbox.

    2) How can you launch an external program from within your application without it being minimized. I've managed to launch an applications using Shell(path), but it always launches minimized.

    3) Last, and probably the simplest, how do you open a new form by, say, pushing a cmdButton?

    If you can answer at least one, or more, of these questions for me, I would greatly appreciate it!

    Thank you!
    -TM

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    OK, here are my answers:

    1)
    In Drive1_Change() put this code:
    -
    Dir1.Path = Drive1.Drive
    -

    and in Dir1_Change() this:
    -
    File1.Path = Dir1.Path
    -


    2)
    Shell "Notepad.exe", vbNormalFocus
    -No comment-


    3)
    Put <Form>.Show in the Button. I'll show you an example:

    -
    Private Sub Command1_Click()
    Form2.Show
    End Sub
    -

    If you have more questions, feel free to ask them

    ------------------
    fox_mccloud@gmx.net
    ...
    Every program can be reduced to one instruction which doesn't work.


  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Albany, OR, United States
    Posts
    10

    Post

    Thanks Fox, I really appreciate it!

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