By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,050 Members | 1,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,050 IT Pros & Developers. It's quick & easy.

Object type cannot be converted to target type

P: n/a
I got this error "Object type cannot be converted to target type" in my VB
Winforms application. When I click on it, it goes no where, how do I
troubleshoot this? Thank you.
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You'll have to post some code.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"news.microsoft.com" <As******@hotmail.com> wrote in message
news:e0*************@TK2MSFTNGP15.phx.gbl...
I got this error "Object type cannot be converted to target type" in my VB
Winforms application. When I click on it, it goes no where, how do I
troubleshoot this? Thank you.

Nov 21 '05 #2

P: n/a
I don't know where the problem is since it does not point there, instead it
point to the 1st line of the .vb file, the file is 2k long which I don't
think anyone want to read it.

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You'll have to post some code.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"news.microsoft.com" <As******@hotmail.com> wrote in message
news:e0*************@TK2MSFTNGP15.phx.gbl...
I got this error "Object type cannot be converted to target type" in my VB
Winforms application. When I click on it, it goes no where, how do I
troubleshoot this? Thank you.


Nov 21 '05 #3

P: n/a
try changing the exception handling behviour to see if you can localize
the problem

CTRL+ALT+E to show the exceptions screen

select the, 'Common Language Runtime Exceptions'

Change the, 'When the exception is thrown' setting to, 'Break into the
debugger'

This should bring you to where it is occurring. Hopefully.

If you are getting lots of exceptions (this will break even on handled
exceptions) then try to change the setting just before you invoke the
functionality that causes the error.

Alan.

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.