B
Benny Raymond
I'm trying to adjust the length of the strings being drawn, as well as
some effects depending on what item is actually being drawn. I tried
doing the following, but the paint event never runs:
#region TView
public class tView : TreeView
{
#region Constructor
public tView()
{
Paint += new PaintEventHandler(tView_Paint);
/*
also tried:
this.Paint += ...
base.Paint += ...
*/
}
private void tView_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
/*
the following line has a break on it,
but the program never breaks.. so this
isn't running?
*/
Debug.WriteLine("blah");
}
#endregion
some effects depending on what item is actually being drawn. I tried
doing the following, but the paint event never runs:
#region TView
public class tView : TreeView
{
#region Constructor
public tView()
{
Paint += new PaintEventHandler(tView_Paint);
/*
also tried:
this.Paint += ...
base.Paint += ...
*/
}
private void tView_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
/*
the following line has a break on it,
but the program never breaks.. so this
isn't running?
*/
Debug.WriteLine("blah");
}
#endregion