Results 1 to 2 of 2

Thread: Have a couple of questions

  1. #1
    Guest

    Question

    I am making a program and it will do many things that I curently can't figure out how to do

    1. I need to know how to make it so when you click a button it pops up with one of those windows where you can sellect what directory and file you want to open.
    EX: Clicking open in vb

    2. Getting keys from programs and sending keys to ICQ. If I use the sendkey function to send keys to an ICQ window it doesn't send to the message but to the program so if I have an S it is like pressing Alt+S and so on. I also need to be able to receive text from ICQ and such...

    3. I need to know how I can get Outlook express to make a shortcut to my program within outlook express.
    EX: Up at the top menu it says file edit view tools etc. and I want a button that says my program and links to it.

    And that is about all I really need at this time. Thanks

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Talking 1 out of 3 ain't bad

    i can help you with #1

    Set a reference to the Windows Common Dialog Control by right clicking in the controls toolbox and selecting Components and then the Windows Common Dialog Control. Draw one on your form and then put this in your button click routine.

    Code:
    Private Sub cmdOpen_Click()
    
    CommonDialog1.ShowOpen
    'then in here put all of the properties and stuff that you want, like if you want to have the dialog box open up to a specific directory automatically
    CommonDialog1.InitDir = "'put the directory here"
    
    'or if you want to save the name of the selected file to a variable
    strFileName = CommonDialog1.FileName
    
    End Sub
    as for the other 2 questions, sorry I have not a clue

    cheers

    Andrew

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