Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27223

custom user component, test container strange behavior

$
0
0
I use VS .NET 2010, ultimate edition.

I think I'm going crazy :) Working to my component I suddenly change to work independently (without test form project) in instance, I create a windows control library.
In fact I just wanna some debug improvments at design stage of component, without success anyhow but this is another discussion.

Now when I build the component, a nice "Test container" shows up with all my properties in place. However, all day long I struggled to display some expandable property which in originally test bench it shows ok

Code:

  Private tt As time

    <Category("_TEST_")> _
    <TypeConverter(GetType(timeConverter))> _
    Public Property Aspect() As time
        Get

            Return tt
        End Get
        Set(ByVal Value As time)
            tt = Value
            Me.Refresh()
        End Set
    End Property

The "Aspect" property value shows a black band instead and when I click, it crashes with something like "null reference of object"
If I use some embedded converter like

Code:

<TypeConverter(GetType(ExpandableObjectConverter))> _
The property is shown ok, it expands, but of course there is no way to display the converted from/to string in group value.
So my conclusion is the IDE, the "Test Container" in fact doesn't see my converter class "timeConverter" which btw is not mine, I downloaded from some MS example just in case I mess t up something in my own converter.

The questions are :)

- It's my problem, decoration attributes or something for design time that I miss?
- Should I drop the windows control library and use some form + control as test bench
- is there a decent way to debug my component like stepping into type converter class :) since I had a lot of problems until working

Thanks very much in advance,

Viewing all articles
Browse latest Browse all 27223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>