CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    maharashtra,india
    Posts
    24

    *?how to show a file on clicking of a button?*

    when the user clicks a button say command1 then i want a file located in c: say c:\windows\loadm.exe to run. how do i do that?? pleez help


    isit my site at http://in.members.tripodasia.com/karthik_immortal

  2. #2
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    222

    Re: *?how to show a file on clicking of a button?*

    You could use Shell or the Win API function ShellExecute. For a more detailed explanation of both see the VB help files.

    ----------------
    You can contact me directly at [email protected]
    Hey, and... don't forget your parsley cause you can't eat your dog after having stolen him from some animal shelter and having drowned him in the Atlantic Ocean.
    Teamwork Software - Stuff That Does Something

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

Featured