D
doker0
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
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