N
news
I am using Visual Studio Tools for Office with Word 2003 on XP Pro.
In the code behing page, I open a dialog window for information. This
window opens and closes just fine but randomly I get an error paerforming
the form.showdialog whcih returns the following :
"System.ComponentModel.Win32Exception: Class already exists
at System.Windows.Forms.WindowClass.RegisterClass()
at System.Windows.Forms.WindowClass.Create(String className, Int32
classStyle)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at WordTemplateProject1.OfficeCodeBehind.ThisDocument_New() in
D:\TestApps\WordTemplateProject1\ThisDocument.vb:line 132"
Has anyone experience this error or have suggestions on the casue?
Dialog being shown has two text boxes and two command buttons. No
processing is being performed in the form since it is just part of a demo.
TIA for any help or suggestions
In the code behing page, I open a dialog window for information. This
window opens and closes just fine but randomly I get an error paerforming
the form.showdialog whcih returns the following :
"System.ComponentModel.Win32Exception: Class already exists
at System.Windows.Forms.WindowClass.RegisterClass()
at System.Windows.Forms.WindowClass.Create(String className, Int32
classStyle)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at WordTemplateProject1.OfficeCodeBehind.ThisDocument_New() in
D:\TestApps\WordTemplateProject1\ThisDocument.vb:line 132"
Has anyone experience this error or have suggestions on the casue?
Dialog being shown has two text boxes and two command buttons. No
processing is being performed in the form since it is just part of a demo.
TIA for any help or suggestions