Inheriting Controls

  • Thread starter Thread starter meh
  • Start date Start date
M

meh

If I create a treeView sould I get the same member variables as a treeView.
I dont see MyTree.Text or MyTree.Tag. Do I have to define them or have I
left something out.
Any help, docs or examples would be greatly appreciated

tia
meh

public class MyTree : TreeView
{
private void InitializeComponent()
{

}

public MyTree()
{
//
// TODO: Add constructor logic here
//
}
}
 
You should make sure that you are referencing the "System.Windows.Forms.dll" in your project. You need to override "Text", while "Tag" is available.


If I create a treeView sould I get the same member variables as a treeView.
I dont see MyTree.Text or MyTree.Tag. Do I have to define them or have I
left something out.
Any help, docs or examples would be greatly appreciated

tia
meh

public class MyTree : TreeView
{
private void InitializeComponent()
{

}

public MyTree()
{
//
// TODO: Add constructor logic here
//
}
}
 
Back
Top