Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a button in my windows form, and I want it to do this.

Googlechrome.Show()


but thats impossible!!, so I had an idea and it is like this, Button one opens System.Run and types in it Googlechrome.exe . but I dont know what should I write .

I need an answer, thanks :)
Posted

1 solution

Create an empty HTML page:
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>  
  <head>  
    <meta http-equiv="content-type" content="text/html; charset=windows-1250">  
    <meta name="generator" content="PSPad editor, www.pspad.com">  
    <title>MY Downloads
    </title> 
  </head>  
  <body>

  </body>
</html>
Save it somewhere you can find it: D:\Temp\blank.html will do.
Then just
VB
Process.Start("D:\Temp\blank.html")
That'll start the default browser for the system, and open the blank file.
 
Share this answer
 
Comments
Tareq Jami 24-Dec-15 9:37am    
Thank you !!
OriginalGriff 24-Dec-15 9:49am    
You're welcome!

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