VB 2008 webbrowser maken raare foutmelding

Status
Niet open voor verdere reacties.

Dejerry

Gebruiker
Lid geworden
9 sep 2008
Berichten
77
Hallo, ik ben dus een webbrowser aan het maken met VB 2008. Maar als ik mijn browser wil testen met 'Debug' en ik typ in 'textbox1'de URL krijg ik deze foutmelding.

System.InvalidCastException was unhandled
Message="Kan een object van het type System.Windows.Forms.StatusStrip niet converteren naar het type System.Windows.Forms.WebBrowser."
Source="CustomBrowser"
StackTrace:
bij CustomBrowser.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Jerry Schapers\Mijn documenten\Visual Studio 2008\Projects\CustomBrowser\CustomBrowser\Form1.vb:regel 9
bij System.Windows.Forms.Control.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
bij System.Windows.Forms.Button.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(ApplicationContext context)
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bij CustomBrowser.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:regel 81
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bij System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
bij System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
bij System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
bij System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
bij System.Activator.CreateInstance(ActivationContext activationContext)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
InnerException:

Klik op de link voor de foto:

Normale link: http://www.fotopocket.nl/fpimages/2009/06/26/3e93a39d843f6fcf8541186c7b37d9b4/foutcode.bmp
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan