如何在Caption栏画出线段?
我作如下尝试
System.Drawing.Graphics _Graph
Pen blackPen = new Pen(Color.Black, 1);
// Create coordinates of points that define line.
float x1 = 0.0F;
float y1 = 0.0F;
float x2 = 500.0F;
float y2 = 0.0F;
// Draw line to screen.
_Graph.DrawLine(blackPen, x1, y1, x2, y2);
但是在Caption栏下画出一条线段,而非在Caption栏画出这条线?
3Q