|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Is the difference intended?Hi.
Recently, when I was designing myown buttonbar and a designer serialization(typeconverter) for its button collection I've slipped on construction like this: If TypeOf value Is Field Then It occured that sometimes it is not even if in Else i msgboxed it (value.ToString) and it said ButtonBarControl.Field. So i changed it to something like this: If Type.Equals(value.GetType, GetType(Field)) Then and this one above works perfectly. I wonder what's the difference and is it indeed intened. Best regards, Doker After further inquiery i see that the same happens with both lines.
Why and when an object X of type A isnot of type A? AFAIK TypeOf also takes inheritance into account (that is if B inherits from
A Then TypeOf BVar Is A is true). Could it be your problem ? Simple repro ? -- Show quoteHide quotePatrice <dok***@wp.pl> a écrit dans le message de news: 1157449653.079366.38***@i3g2000cwc.googlegroups.com... > After further inquiery i see that the same happens with both lines. > Why and when an object X of type A isnot of type A? >
Help with Adding A Row
is an object destroyed/closed when an exception occurs How to input characters that are not present in a keyboard to a VB Adding event (mouseclick) handlers to GDI+ shapes? source and multiple machines UI Challenge: How to create a real outliner (like Ecco, Grandview, etc) - SampleDisplay.bmp (0/1) newbe help please. paste disabled when i add a menubar in vb2005 paramertised select query Windows form is getting crashed VB.Net 2005 Commandline Arguments to the exe corresponding to a Windows Service |
|||||||||||||||||||||||