日期:2014-05-18  浏览次数:21367 次

checkbox 单选 CS 结构的 不用JS写
private void InitializeComponent()
  {
  this.groupBox1 = new System.Windows.Forms.GroupBox();
  this.groupBox2 = new System.Windows.Forms.GroupBox();
  this.checkBox1 = new System.Windows.Forms.CheckBox();
  this.checkBox2 = new System.Windows.Forms.CheckBox();
  this.checkBox3 = new System.Windows.Forms.CheckBox();
  this.checkBox4 = new System.Windows.Forms.CheckBox();
  this.checkBox5 = new System.Windows.Forms.CheckBox();
  this.checkBox6 = new System.Windows.Forms.CheckBox();
  this.button1 = new System.Windows.Forms.Button();
  this.groupBox1.SuspendLayout();
  this.groupBox2.SuspendLayout();
  this.SuspendLayout();
  // 
  // groupBox1
  // 
  this.groupBox1.Controls.Add(this.checkBox3);
  this.groupBox1.Controls.Add(this.checkBox2);
  this.groupBox1.Controls.Add(this.checkBox1);
  this.groupBox1.Location = new System.Drawing.Point(12, 12);
  this.groupBox1.Name = "groupBox1";
  this.groupBox1.Size = new System.Drawing.Size(342, 89);
  this.groupBox1.TabIndex = 0;
  this.groupBox1.TabStop = false;
  this.groupBox1.Text = "片头";
  // 
  // groupBox2
  // 
  this.groupBox2.Controls.Add(this.checkBox6);
  this.groupBox2.Controls.Add(this.checkBox5);
  this.groupBox2.Controls.Add(this.checkBox4);
  this.groupBox2.Location = new System.Drawing.Point(12, 107);
  this.groupBox2.Name = "groupBox2";
  this.groupBox2.Size = new System.Drawing.Size(342, 102);
  this.groupBox2.TabIndex = 1;
  this.groupBox2.TabStop = false;
  this.groupBox2.Text = "片尾";
  // 
  // checkBox1
  // 
  this.checkBox1.AutoSize = true;
  this.checkBox1.ForeColor = System.Drawing.Color.Fuchsia;
  this.checkBox1.Location = new System.Drawing.Point(38, 21);
  this.checkBox1.Name = "checkBox1";
  this.checkBox1.Size = new System.Drawing.Size(72, 16);
  this.checkBox1.TabIndex = 0;
  this.checkBox1.Text = "60秒彩条";
  this.checkBox1.UseVisualStyleBackColor = true;
  // 
  // checkBox2
  // 
  this.checkBox2.AutoSize = true;
  this.checkBox2.ForeColor = System.Drawing.SystemColors.ControlText;
  this.checkBox2.Location = new System.Drawing.Point(38, 43);
  this.checkBox2.Name = "checkBox2";
  this.checkBox2.Size = new System.Drawing.Size(72, 16);
  this.checkBox2.TabIndex = 1;
  this.checkBox2.Text = "30秒黑场";
  this.checkBox2.UseVisualStyleBackColor = true;
  // 
  // checkBox3
  // 
  this.checkBox3.AutoSize = true;
  this.checkBox3.Location = new System.Drawing.Point(38, 65);
  this.checkBox3.Name = "checkBox3";
  this.checkBo