小编Bar*_*bie的帖子

在c#中添加复选框在c#中

我想在我的应用程序的树视图中将复选框添加到某个父节点的子节点...我该如何添加它?

c# treeview winforms

15
推荐指数
3
解决办法
2万
查看次数

检查并取消选中c#中树视图的所有节点

我在我的Windows应用程序和树视图中有树形视图,带有复选框,我有一些"父节点"和一些"子节点",我希望在单击时一次检查和取消检查父节点和子节点"全部检查"和"取消全部检查"按钮......我该怎么做?

c# treeview tabcontrol winforms

5
推荐指数
1
解决办法
3万
查看次数

在c#中显示中心的表单

我是新来的,实际上我正在研究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)

c#

1
推荐指数
1
解决办法
4225
查看次数

在c#的tabControl中显示第一个标签页的下一个标签页

我在窗体中的tabcontrol中有两个标签A,B,我想在标签页A上点击"下一步"按钮显示标签页B,我该怎么做?

c# tabcontrol winforms

1
推荐指数
1
解决办法
1611
查看次数

标签 统计

c# ×4

winforms ×3

tabcontrol ×2

treeview ×2