1
Reply

WebBrowser Control

supriya chakraborty

supriya chakraborty

Jun 8 2007 2:47 AM
2k

I am just started to get some experience on windows form. I was trying to implement the web browser control. I just want display a web page here. But every time it is showing "Page can not be displayed"

The following step I have followed :

1. From Com component dialog I have selected the Webbrowser Control option.
2. From the tool box I droped the control on my form.
3. Putted very simple code to show a page.

Dim nullObject As System.Object = 0
Dim str As String = ""
Dim nullObjStr As System.Object = str
Cursor.Current = Cursors.WaitCursor
AxWebBrowser1.Navigate("http://www.microsoft.com", nullObject, nullObjStr, nullObjStr, nullObjStr)
Cursor.Current = Cursors.Default


But no result, no error also.

Can any one help me about what I am doing wrong and what is the possible way to solve this problem.


Thanks

Supriya Chakraborty


Answers (1)