怎么实现象Explorer的地址(D)和隔壁的TextBox界面?
我先用label做了上面那条线,但是地址是用label来写吗?Dock怎么设置?
转到和地址都不知道怎么设置,因为我想只有TextBox随界面放大而放大,缩小而缩小。
using System.Windows.Forms;
class Test : Form
{
Test()
{
TextBox t = new TextBox();
t.Parent = this;
t.Multiline = true;
t.Dock = DockStyle.Fill;
Panel pnl = new Panel();
pnl.Parent = this;
pnl.Height = 22;
pnl.Dock = DockStyle.;
TextBox tbx = new TextBox();
tbx.Parent = pnl;
tbx.Dock = DockStyle.Fill;
Label lbl = new Label();
lbl.Parent = pnl;
lbl.Text = "地址";
lbl.AutoSize = true;
lbl.Dock = DockStyle.Left;
Button btn = new Button();
btn.Parent = pnl;
btn.Text = "转到";
btn.Dock = DockStyle.Right;
}
static void Main()
{
Application.Run(new Test());
}
}