设置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();
}
}
}
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博客 ” ,链接:http://blog.itpub.net/29973590/viewspace-1319748/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29973590/viewspace-1319748/