G
Guest
I have a custom control consisting of a panel, a text label, and a TreeView
derived from Microsoft's TreeView control modified to allow custom paint
events. The text label is contained inside the panel, which is docked at the
top of my custom control; the treeview is docked to fill the remainder of the
custom control.
If I declare the public class to inherit System.Windows.Forms.UserControl,
resize events for the custom control pass down to resize the treeview and the
panel; however, I'm unable to assign any node values to the tree. If I
declare the public class to inherit from my modified treeview control, I'm
able to populate the tree; however, the contents aren't visible nor do resize
events have any impact on the treeview or the panel.
Any ideas on how I can get this working? Thanks in advance!
Allen
derived from Microsoft's TreeView control modified to allow custom paint
events. The text label is contained inside the panel, which is docked at the
top of my custom control; the treeview is docked to fill the remainder of the
custom control.
If I declare the public class to inherit System.Windows.Forms.UserControl,
resize events for the custom control pass down to resize the treeview and the
panel; however, I'm unable to assign any node values to the tree. If I
declare the public class to inherit from my modified treeview control, I'm
able to populate the tree; however, the contents aren't visible nor do resize
events have any impact on the treeview or the panel.
Any ideas on how I can get this working? Thanks in advance!
Allen