I have the following code:

Dim BuilderForm As frmBuilder
BuilderForm = New frmBuilder(_LastChangedFile.Path)

BuilderForm.Refresh()

BuilderForm.ShowDialog()

And get the following exception on the last line:

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.windows.forms.dll

Additional information: DragDrop registration failed.

Any ideas?

I've tried compiling using .NET 2002 and .NET 2003 and get the same error.
I wasn't getting this error when running on Server 2003 if that's any help!
When looking at the build output, I get the following under .NET 2003:

'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'auto': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.dr
awing.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.directoryservices\1.0.5000.0__b03f5f7f11d50a3a
\system.directoryservices.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.messaging\1.0.5000.0__b03f5f7f11d50a3a\system.
messaging.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.serviceprocess\1.0.5000.0__b03f5f7f11d50a3a\sy
stem.serviceprocess.dll', No symbols loaded.

'auto': Loaded
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.
dll', No symbols loaded.

Is this ok?

Re: Unhandled exception on .ShowDialog() by Ken

Ken
Tue Sep 23 14:17:42 CDT 2003

Hi,

Sounds like there is an error in the form. Place a breakpoint at
the builderform.showdialog() line and step though the code line by line
until you get the error.

Ken
------------
"Ed Crowley" <curspice@pacbell.net> wrote in message
news:usTGsdegDHA.3592@tk2msftngp13.phx.gbl...
> I have the following code:
>
> Dim BuilderForm As frmBuilder
> BuilderForm = New frmBuilder(_LastChangedFile.Path)
>
> BuilderForm.Refresh()
>
> BuilderForm.ShowDialog()
>
> And get the following exception on the last line:
>
> An unhandled exception of type 'System.InvalidOperationException' occurred
> in system.windows.forms.dll
>
> Additional information: DragDrop registration failed.
>
> Any ideas?
>
> I've tried compiling using .NET 2002 and .NET 2003 and get the same error.
> I wasn't getting this error when running on Server 2003 if that's any
help!
> When looking at the build output, I get the following under .NET 2003:
>
> 'DefaultDomain': Loaded
> 'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
> loaded.
> 'auto': Loaded
> 'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No
> symbols loaded.
>
> 'auto': Loaded
>
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.dr
> awing.dll', No symbols loaded.
>
> 'auto': Loaded
>
'c:\winnt\assembly\gac\system.directoryservices\1.0.5000.0__b03f5f7f11d50a3a
> \system.directoryservices.dll', No symbols loaded.
>
> 'auto': Loaded
>
'c:\winnt\assembly\gac\system.messaging\1.0.5000.0__b03f5f7f11d50a3a\system.
> messaging.dll', No symbols loaded.
>
> 'auto': Loaded
>
'c:\winnt\assembly\gac\system.serviceprocess\1.0.5000.0__b03f5f7f11d50a3a\sy
> stem.serviceprocess.dll', No symbols loaded.
>
> 'auto': Loaded
>
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.
> dll', No symbols loaded.
>
> Is this ok?
>
>



Re: Unhandled exception on .ShowDialog() by Ed

Ed
Wed Sep 24 05:17:29 CDT 2003

Doesn't seem to be a form error - I can't seem to trap it anywhere. It only
happens when AllowDrop is True on either the treeview or tab control.

This doesn't happen on XP or 2003.

"Ken Tucker" <vb2ae@bellsouth.net> wrote in message
news:uih7fdggDHA.1200@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Sounds like there is an error in the form. Place a breakpoint at
> the builderform.showdialog() line and step though the code line by line
> until you get the error.
>
> Ken
> ------------
> "Ed Crowley" <curspice@pacbell.net> wrote in message
> news:usTGsdegDHA.3592@tk2msftngp13.phx.gbl...
> > I have the following code:
> >
> > Dim BuilderForm As frmBuilder
> > BuilderForm = New frmBuilder(_LastChangedFile.Path)
> >
> > BuilderForm.Refresh()
> >
> > BuilderForm.ShowDialog()
> >
> > And get the following exception on the last line:
> >
> > An unhandled exception of type 'System.InvalidOperationException'
occurred
> > in system.windows.forms.dll
> >
> > Additional information: DragDrop registration failed.
> >
> > Any ideas?
> >
> > I've tried compiling using .NET 2002 and .NET 2003 and get the same
error.
> > I wasn't getting this error when running on Server 2003 if that's any
> help!
> > When looking at the build output, I get the following under .NET 2003:
> >
> > 'DefaultDomain': Loaded
> > 'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
> > loaded.
> > 'auto': Loaded
> > 'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll',
No
> > symbols loaded.
> >
> > 'auto': Loaded
> >
>
'c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.dr
> > awing.dll', No symbols loaded.
> >
> > 'auto': Loaded
> >
>
'c:\winnt\assembly\gac\system.directoryservices\1.0.5000.0__b03f5f7f11d50a3a
> > \system.directoryservices.dll', No symbols loaded.
> >
> > 'auto': Loaded
> >
>
'c:\winnt\assembly\gac\system.messaging\1.0.5000.0__b03f5f7f11d50a3a\system.
> > messaging.dll', No symbols loaded.
> >
> > 'auto': Loaded
> >
>
'c:\winnt\assembly\gac\system.serviceprocess\1.0.5000.0__b03f5f7f11d50a3a\sy
> > stem.serviceprocess.dll', No symbols loaded.
> >
> > 'auto': Loaded
> >
>
'c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.
> > dll', No symbols loaded.
> >
> > Is this ok?
> >
> >
>
>