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

Display Image to Browser Directly from PC source using PHP

php image

How to get file source path from users PC when they submit their file on form like below.

Google App Engine and Service Accounts

python google-app-engine oauth-2.0 google-drive-sdk google-api-python-client

I went went trough the service accounts for accessing api's of Google.

deleting rows of a data frame with specific condition

r data.frame

I've seen similar questions here, but I couldn't find any help.