Hi!

In XPanderList.vb, you can read:

    Private m_XPanderComparer As XPanderComparer
    Private m_ControlList As New SortedList(m_XPanderComparer)

In those 2 lines you declare an XPanderComparer (m_XPanderComparer ), and then you asign it to the
SortedList "ControlList"... but... m_XPanderComparer is "Nothing" so.. it is like doing:

    Private m_ControlList As New SortedList(Nothing)

Am I wrong?

So I tried to first REALLY create an XPanderComparer, and then asign it to the SortedList, but
the,another BUG shows up:

IComparer is used to compare the KEYS of the SortedList, but the code inside the XPanderComparer tries to CType the KEYS in to XPander, and the KEYS of the SortedList are INTEGERS so... you end up with a cast exception.

Am I wrong?
bye
LUXSPES