Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   InvalidOperationException was unhandled?! (http://www.go4expert.com/forums/invalidoperationexception-was-unhandled-t7932/)

Sheepage 19Dec2007 22:52

InvalidOperationException was unhandled?!
 
Hello I got this error message "An error occurred creating the form. See Exception.InnerException for details. The error is: Event Click is not valid on this ActiveX control." I do not know how to fix it. Here is the code that is being used at the moment.

Quote:

Public Class Form1
Private Sub Cmdgo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cmdgo.Click
WebBrowser1.Navigate(Text1.Text)
End Sub

Private Sub Cmdforward_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WB.Click
WebBrowser1.GoForward()
End Sub

Private Sub Cmdback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cmdback.Click
WebBrowser1.GoBack()
End Sub

Private Sub Cmdrefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WebBrowser1.Click
WebBrowser1.Refresh()
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub
End Class

I hope you can help!


All times are GMT +5.5. The time now is 12:29.