Viewer1.Toolbar.Visible = False
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Caught error closing report window: System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at DataDynamics.ActiveReports.Viewer.ViewerToolbar.-3d20(Int32 currentPage, Int32 pageCount, Int32 historyPosition, Int32 historyCount, Single zoomVal, -2c2e type, Boolean completed, Boolean multiplePageMode)
at DataDynamics.ActiveReports.Viewer.-bdec.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.get_HostedInWin32DialogManager()
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at System.Windows.Forms.UnsafeNativeMethods.SetFocus(HandleRef hWnd)
at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.ComboBox.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at DataDynamics.ActiveReports.Viewer.ViewerToolbar.Dispose(Boolean disposing)
at DataDynamics.ActiveReports.Viewer.ToolbarObject.Dispose(Boolean disposing)
at DataDynamics.ActiveReports.Viewer.Viewer.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at APMRGReporter.BaseReportForm.Dispose(Boolean disposing) in P:\APMRG Project\Reporter\BaseReportForm.vb:line 45
The program '[3880] APMRGReporter.vshost.exe: Managed' has exited with code -1073741819 (0xc0000005).