Exemplo n.º 1
0
 protected override void WndProc(ref Message m)
 {
     CustomTableLayoutPanel.ShowScrollBar(m.HWnd, 1, 0);
     base.WndProc(ref m);
 }
Exemplo n.º 2
0
 private void InitializeComponent()
 {
     this.components         = new Container();
     this.applyButton        = new Button();
     this.pictureBox1        = new PictureBox();
     this.label2             = new Label();
     this.channelTableLayout = new CustomTableLayoutPanel();
     this.customLabel1       = new CustomLabel(this.components);
     ((ISupportInitialize)this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.applyButton.BackgroundImage           = Resources.blue_background_0;
     this.applyButton.BackgroundImageLayout     = ImageLayout.Stretch;
     this.applyButton.FlatAppearance.BorderSize = 0;
     this.applyButton.FlatStyle = FlatStyle.Flat;
     this.applyButton.Font      = new Font("微软雅黑", 12f, FontStyle.Regular, GraphicsUnit.Pixel);
     this.applyButton.ForeColor = Color.White;
     this.applyButton.Location  = new Point(258, 119);
     this.applyButton.Name      = "applyButton";
     this.applyButton.Size      = new Size(50, 26);
     this.applyButton.TabIndex  = 16;
     this.applyButton.Text      = "应用";
     this.applyButton.UseVisualStyleBackColor = false;
     this.applyButton.Click          += new EventHandler(this.applyButton_Click);
     this.pictureBox1.BackgroundImage = Resources.exception;
     this.pictureBox1.Location        = new Point(39, 2);
     this.pictureBox1.Name            = "pictureBox1";
     this.pictureBox1.Size            = new Size(30, 30);
     this.pictureBox1.TabIndex        = 14;
     this.pictureBox1.TabStop         = false;
     this.label2.BackColor            = Color.FromArgb(216, 216, 216);
     this.label2.Location             = new Point(15, 44);
     this.label2.Name     = "label2";
     this.label2.Size     = new Size(304, 1);
     this.label2.TabIndex = 17;
     this.label2.Text     = "label2";
     this.channelTableLayout.AutoScroll  = true;
     this.channelTableLayout.ColumnCount = 4;
     this.channelTableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.channelTableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.channelTableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.channelTableLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25f));
     this.channelTableLayout.Location = new Point(44, 61);
     this.channelTableLayout.Name     = "channelTableLayout";
     this.channelTableLayout.RowCount = 2;
     this.channelTableLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.channelTableLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 50f));
     this.channelTableLayout.Size     = new Size(245, 52);
     this.channelTableLayout.TabIndex = 18;
     this.customLabel1.Font           = new Font("微软雅黑", 9f);
     this.customLabel1.LineDistance   = 3;
     this.customLabel1.Location       = new Point(91, 0);
     this.customLabel1.Name           = "customLabel1";
     this.customLabel1.Size           = new Size(215, 38);
     this.customLabel1.TabIndex       = 19;
     this.customLabel1.Text           = "当前无线连接网络环境信道拥堵,为了保证最无忧体验,建议更换其他信道。";
     base.AutoScaleDimensions         = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.Controls.Add(this.customLabel1);
     base.Controls.Add(this.channelTableLayout);
     base.Controls.Add(this.label2);
     base.Controls.Add(this.applyButton);
     base.Controls.Add(this.pictureBox1);
     base.Name        = "NetworkDialogChannelControl";
     base.Size        = new Size(334, 154);
     base.Load       += new EventHandler(this.NetworkDialogChannelControl_Load);
     base.MouseHover += new EventHandler(this.NetworkDialogChannelControl_MouseHover);
     ((ISupportInitialize)this.pictureBox1).EndInit();
     base.ResumeLayout(false);
 }