Unhandled exception on .ShowDialog()

E

Ed Crowley

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?
 
K

Ken Tucker

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
 
E

Ed Crowley

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top