Hi
Yesterday, a client was asking me to open a pop-up for a link. The problem was that the pop-up window is supposed to be open from a windows application. I knew we can open the browser using the code. The code to that is pretty simple.
System.Diagnostics.Process.Start(URL)
Here is the URL is the URL that should be opened in the browser. If the URL is empty you will get an exception.
But what the client wanted was to get a pop-up type display without and buttons, address bar etc…
So I decided to use the in built Web Browser control. The control is pretty simple to use and was more than handy for the purpose. Remember this control is new in the dot net 2.0.
All I had to do was drag this control from the tool box. The control would automatically dock (Fill) itself, which is pretty cool. Now we need to provide the control with the URL. The URL property takes a value of System.Uri.
Yes that’s all I need to do to get this done.
Hope this Helps
Thanks
Vikram