我在我的Windows应用程序和树视图中有树形视图,带有复选框,我有一些"父节点"和一些"子节点",我希望在单击时一次检查和取消检查父节点和子节点"全部检查"和"取消全部检查"按钮......我该怎么做?
我是新来的,实际上我正在研究c#中的项目,在那个项目中我想在屏幕中心显示我的表单...所以为此我写了下面的代码..
public class CenterForm : System.Windows.Forms.Form
{
private System.ComponentModel.Container components;
public CenterForm()
{
InitializeComponent();
CenterToScreen();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(107, 177);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Ok";
this.button1.UseVisualStyleBackColor = true;
//
// CenterForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize …Run Code Online (Sandbox Code Playgroud) 我在窗体中的tabcontrol中有两个标签A,B,我想在标签页A上点击"下一步"按钮显示标签页B,我该怎么做?