473,480 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

object type cannot be converted to target type

object type cannot be converted to target type - i am getting this error message occuring numerous times in my task list, my project compiles and runs ok but it is a nuisance, I think Ihva eheard of this before but I cannot remember the solution, anybody got any help?
Nov 20 '05 #1
4 4156
"Barry" <an*******@discussions.microsoft.com> schrieb
object type cannot be converted to target type - i am getting this
error message occuring numerous times in my task list, my project
compiles and runs ok but it is a nuisance, I think Ihva eheard of
this before but I cannot remember the solution, anybody got any help?


Does the message have a relation to the source code (double-click)? What's
the line of code?
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Barry,

while I'm sitting on that, anyway... ;-) (See VB and implicit conversions
below)

Can you provide a code snipplet that's causing the error?

Klaus

"Barry" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:6F**********************************@microsof t.com...
object type cannot be converted to target type - i am getting this error

message occuring numerous times in my task list, my project compiles and
runs ok but it is a nuisance, I think Ihva eheard of this before but I
cannot remember the solution, anybody got any help?
Nov 20 '05 #3
Same thing here..

The error is :

"Object type cannot be converted to target type"

Double clicking takes you to Line 0 of a page of code, sometimes there is
code there, otherwise (in my case) the code on that line is "Option Strict
On"

It causes no problems in the compile, and running that i can see however, i
am sure that its not displaying the line for the fun of it.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:Of**************@TK2MSFTNGP12.phx.gbl...
"Barry" <an*******@discussions.microsoft.com> schrieb
object type cannot be converted to target type - i am getting this
error message occuring numerous times in my task list, my project
compiles and runs ok but it is a nuisance, I think Ihva eheard of
this before but I cannot remember the solution, anybody got any help?


Does the message have a relation to the source code (double-click)? What's
the line of code?
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"Jason Garland (Secure Access Pty Ltd)" <Ja**@SecureAccess.Com.Au>
schrieb
Same thing here..

The error is :

"Object type cannot be converted to target type"

Double clicking takes you to Line 0 of a page of code, sometimes
there is code there, otherwise (in my case) the code on that line is
"Option Strict On"

It causes no problems in the compile, and running that i can see
however, i am sure that its not displaying the line for the fun of
it.


Hmmm... I have no clue why.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
25389
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
2
5309
by: Paul Tomlinson | last post by:
I am trying to call a delegate on my parent from a child thread, this is my code, however i'm getting an exception "Object type cannot be converted to target type." which I can't understand. The...
0
1551
by: Dica | last post by:
i'm getting an error when trying set my dataAdapter's selectCommand. the sqlStatement is a storedProc which takes parameters, so it's constructed as: sqlSelectCommand1.CommandText = ""; ...
0
287
by: Dayne | last post by:
I am gettings this weird message "object type cannot be converted to target type" when I try to make copies of a component on my form. Any Idea? Dayne
3
3114
by: news.microsoft.com | last post by:
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.
5
2122
by: Martin Robins | last post by:
I know that this has been asked before; and not only that, I know that it has been answered (successfully) as I myself have previously resolved the problem (with help) - however, I cannot for the...
16
2869
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
2
1846
by: Dabbler | last post by:
I'm getting the following error when I try and insert a row using FormView, ObjectDataSource and stored procedure. The form has 40+ columns on it and I'm not sure how to diagnose where the problem...
0
1267
by: Pablo.Mazaeda | last post by:
Hello, I am getting the following error when opening a form with customs controls objects in Visual Studio 2005 environment. I assume it is a version problem or something. Any solution? ...
0
7054
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6918
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5357
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3008
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1310
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.