How to open website url from windows application(.net) (no javascript)

I want to open website url(in default browser) from my windows application. it is successfully open using below code :

"Process.Start(URL);"

Now my problem is:

i do not want to show the url of the website due to security reason. So how can i hide addressbar of popup browser.

Thanks.

Answers


dear please add webbrowser control in your solution make it invisible and assign anyurl to that document like

       this.webBrowser1.Url = new System.Uri("http://www.google.com", System.UriKind.Absolute);

and then on button click u can open webbrowser

      webBrowser1.Document.Window.Open(new Uri("http://www.microsoft.com"), "displayWindow", "status=yes,width=200,height=400", false); 

screenshot is

using the process.run method use this

create one html file paste that in side the folder where the exe is with the following code

 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta charset="utf-8" />
   <title></title>
   <script>
      window.open('', '_self', '');
      window.open('http://www.microsoft.com', '', 'status=yes,width=200,height=400', false);
      window.close();
    </script>
   </head>
 <body>

 </body>
 </html>

and in ur button click code write as

  Process.Start(Application.StartupPath+ @"\HTMLPage1.html");

Need Your Help

Templated Class Declaration for KDTree

c++ templates kdtree

The following class returns the following error from g++: