all groups > vb.net upgrade > august 2005 >
You're in the

vb.net upgrade

group:

System.InvalidCastException"


System.InvalidCastException" DavideR
8/18/2005 12:19:02 AM
vb.net upgrade:
CType(Me._UserRegTemp1_1, System.ComponentModel.ISupportInitialize).EndInit()
Eccezione first-chance di tipo "System.InvalidCastException" in
system.windows.forms.dll

Re: System.InvalidCastException" Herfried K. Wagner [MVP]
8/21/2005 9:56:45 PM
"DavideR" <DavideR@discussions.microsoft.com> schrieb:
[quoted text, click to view]

Yeah, most certainly the object you try to cast doesn't implement the
particular interface. You can use 'TypeOf x Is IFoo' to check if the
object's type implements a particular interface before casting.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
AddThis Social Bookmark Button