Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello All

 

I am getting an error that (of course) shouldn't be there. I know this should work.

 

the error

 

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

 

Additional information: Error creating window handle.

 

 

the code


Dim myCustForm As New frmCarList
       Me.lstBoxInventory.DataSource = CarArrayList
       myCustForm.ShowDialog()

 

 

its landing on

 

the last lline

 

Rob

  • 10 months later...
Posted

To others who had the problem:

Try viewing a stack trace so you can see what called what to lead up to that error. It's possible that, while showing the form, more of your code could've been run, which actually caused the error. (this can happen, for example, with code in a Paint event)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...