K
kenneth av
i'm attempting to build my own tree control that derives
from usercontrol. but when i create an object of my derived
type and attempt to initialize it, i get a missing method
exception. there's nothing fancy about it....
public class TsTreeControlNode : System.Windows.Forms.Control
{
private System.Windows.Forms.PictureBox expandIcon;
private System.Windows.Forms.PictureBox iconBox;
private System.Windows.Forms.Label textLabel;
private System.Windows.Forms.PictureBox icon;
private System.Windows.Forms.Label name;
public TsTreeControlNode( string text )
{
InitializeComponent();
}
private void InitializeComponent()
{
// Component Designer generated code
}
}
the constructor gets called fine, but when it goes to
execute InitializeComponent, i get the exception. weird
thing is that when i change the content of that method to
something benign, it does manage to find the method! any
thoughts on what might be causing this behavior?
thanks,
ken
from usercontrol. but when i create an object of my derived
type and attempt to initialize it, i get a missing method
exception. there's nothing fancy about it....
public class TsTreeControlNode : System.Windows.Forms.Control
{
private System.Windows.Forms.PictureBox expandIcon;
private System.Windows.Forms.PictureBox iconBox;
private System.Windows.Forms.Label textLabel;
private System.Windows.Forms.PictureBox icon;
private System.Windows.Forms.Label name;
public TsTreeControlNode( string text )
{
InitializeComponent();
}
private void InitializeComponent()
{
// Component Designer generated code
}
}
the constructor gets called fine, but when it goes to
execute InitializeComponent, i get the exception. weird
thing is that when i change the content of that method to
something benign, it does manage to find the method! any
thoughts on what might be causing this behavior?
thanks,
ken