ITPub博客

首页 > Linux操作系统 > Linux操作系统 > c#运用格式菜单来布局窗体的控件.

c#运用格式菜单来布局窗体的控件.

原创 Linux操作系统 作者:longmaoheyezhu 时间:2014-11-04 10:43:26 0 删除 编辑
设置button控件之间的水平间距相同.
1.新建windows窗体应用程序名应为layoutform
2.在默认窗体form1中添加3个button控件.codego.net
3.在form1中添加3个button控件.在菜单中选"格式"  ,"水平间距"  ,"相同间隔"命令.
4.通过"格式"菜单进一步设置.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace LayoutForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
    }
}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29973590/viewspace-1319748/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-10-23

  • 博文量
    8
  • 访问量
    19691