我正在編寫一個繪畫程序。 當用戶畫一條線時,我使用這段代碼,它按預期工作。 _Pen = New Drawing.Pen(_Color, _sngThickness)
_Pen.StartCap = Drawing2D.LineCap.Round
_Pen.EndCap = Drawing2D.LineCap.Round
Using g As Graphics = Graphics.Fro
我想在代碼中在窗體上繪製TextBoxes/Labels並將它們與線連接 - 基於我存儲在數據表(「treedata」)中的數據。如果我使用下面的代碼一切正常: For i = 0 To treedata.Rows.Count - 1
Dim tb As New TextBox
hor = treedata.Rows(i)(11)
vern = ver +
我正在使用本機方法在表單中繪製矩形。當我使用graphics.DrawRectangle方法時,矩形將正確繪製。但是當使用像下面的代碼這樣的本地方法時,它總是填充矩形內的白色背景。 public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.BackC