Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
SQL
how to open file in vb.net


When I click on the button opens the file
Example on the file: exe , pdf , jpg ………..
Posted
Comments
Dave Kreskowiak 17-Jan-13 10:30am    
You've going to have to go into a bit more detail than this. Are you asking how to launch any file like you double-clicked in the file in Explorer or entered the filename in the Start/Run box??

1 solution

Assuming this is Winforms, rather than web based:
VB
Process.Start(myFilePath)
Should do it.
You probably can't do what you want if it is web based, as the code is executed on the Server, not the Client.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900