https://bugzilla.novell.com/show_bug.cgi?id=475997


           Summary: 'Cannot cast from source type to destination type'
                    error when casting a custom control.
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.2.x
          Platform: Other
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=272885)
 --> (https://bugzilla.novell.com/attachment.cgi?id=272885)
a short web site that shows the execption

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)

When casting a TreeNode to a custom TreeNode a 'Cannot cast from source type to
destination type' error occurs.
web site is attached.
relevaant line:
DataTreeNode rootNode = (DataTreeNode)ScriptsTree.Nodes[0];


Reproducible: Always

Steps to Reproduce:
1.Build a custom TreeView and a custom TreeNode custom control.(see attached)
2.try to cast a TreeNode to a custom TreeNode 
3.select a node in the TreeView
Actual Results:  
A 'Cannot cast from source type to destination type' error occurs.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to