本文整理汇总了C#中System.Windows.Forms.Label类的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.Label类的具体用法?C# System.Windows.Forms.Label怎么用?C# System.Windows.Forms.Label使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
System.Windows.Forms.Label类属于命名空间,在下文中一共展示了System.Windows.Forms.Label类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label1.Location = new System.Drawing.Point(72, 128);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(128, 16);
this.label1.TabIndex = 8;
this.label1.Text = "Drag me on the drawing";
this.label1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.label1_MouseMove);
//
// TestControl
//
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.label1});
this.Name = "TestControl";
this.Size = new System.Drawing.Size(280, 296);
this.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.TestControl_GiveFeedback);
this.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.TestControl_QueryContinueDrag);
this.ResumeLayout(false);
}
示例2: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 26F, System.Drawing.FontStyle.Bold);
this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.label1.Location = new System.Drawing.Point(433, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(231, 35);
this.label1.TabIndex = 4;
this.label1.Text = "考卷成绩查询";
//
// TitleScore
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.ClientSize = new System.Drawing.Size(1024, 60);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "TitleScore";
this.Text = "TitleScore";
this.Load += new System.EventHandler(this.TitleScore_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
示例3: InitializeComponent
/// <summary>
/// Initializes the component.
/// </summary>
private void InitializeComponent()
{
this.ValueStringLabel = new System.Windows.Forms.Label();
this.ValueStringTextBox = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// ValueStringLabel
//
this.ValueStringLabel.AutoSize = true;
this.ValueStringLabel.Location = new System.Drawing.Point(133, 10);
this.ValueStringLabel.Name = "ValueStringLabel";
this.ValueStringLabel.Size = new System.Drawing.Size(33, 13);
this.ValueStringLabel.TabIndex = 2;
this.ValueStringLabel.Text = "Label";
//
// ValueStringTextBox
//
this.ValueStringTextBox.Location = new System.Drawing.Point(4, 4);
this.ValueStringTextBox.MaxLength = 255;
this.ValueStringTextBox.Name = "ValueStringTextBox";
this.ValueStringTextBox.Size = new System.Drawing.Size(123, 20);
this.ValueStringTextBox.TabIndex = 3;
//
// ValuePanelString
//
this.AutoSize = true;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.Controls.Add(this.ValueStringTextBox);
this.Controls.Add(this.ValueStringLabel);
this.Name = "ValuePanelString";
this.Size = new System.Drawing.Size(169, 27);
this.ResumeLayout(false);
this.PerformLayout();
}
示例4: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent()
{
this.lblMain = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblMain
//
this.lblMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblMain.Location = new System.Drawing.Point(0, 0);
this.lblMain.Margin = new System.Windows.Forms.Padding(0);
this.lblMain.Name = "lblMain";
this.lblMain.Size = new System.Drawing.Size(0, 31);
this.lblMain.TabIndex = 0;
//
// BottomControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::RegistryCleaner.Properties.Resources.bottomBar;
this.Controls.Add(this.lblMain);
this.Margin = new System.Windows.Forms.Padding(0);
this.MaximumSize = new System.Drawing.Size(0, 31);
this.MinimumSize = new System.Drawing.Size(0, 31);
this.Name = "BottomControl";
this.Size = new System.Drawing.Size(0, 31);
this.ResumeLayout(false);
}
示例5: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.lblMessage = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblMessage
//
this.lblMessage.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblMessage.ForeColor = System.Drawing.Color.White;
this.lblMessage.Location = new System.Drawing.Point(0, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new System.Drawing.Size(200, 50);
this.lblMessage.TabIndex = 0;
this.lblMessage.Text = "Please Wait...";
this.lblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// PleaseWait
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.RoyalBlue;
this.ClientSize = new System.Drawing.Size(200, 50);
this.Controls.Add(this.lblMessage);
this.Font = new System.Drawing.Font("Tahoma", 8F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "PleaseWait";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "PleaseWait";
this.TopMost = true;
this.ResumeLayout(false);
}
示例6: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RenameDialog));
this.label2 = new System.Windows.Forms.Label();
this.txtname = new System.Windows.Forms.TextBox();
this.okbtn = new System.Windows.Forms.Button();
this.cancelbtn = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
this.label2.Name = "label2";
//
// txtname
//
this.txtname.BackColor = System.Drawing.SystemColors.Window;
this.txtname.ForeColor = System.Drawing.SystemColors.ControlText;
resources.ApplyResources(this.txtname, "txtname");
this.txtname.Name = "txtname";
this.txtname.TextChanged += new System.EventHandler(this.txtartist_TextChanged);
//
// okbtn
//
resources.ApplyResources(this.okbtn, "okbtn");
this.okbtn.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okbtn.Name = "okbtn";
this.okbtn.UseVisualStyleBackColor = true;
this.okbtn.Click += new System.EventHandler(this.okbtn_Click);
//
// cancelbtn
//
resources.ApplyResources(this.cancelbtn, "cancelbtn");
this.cancelbtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelbtn.Name = "cancelbtn";
this.cancelbtn.UseVisualStyleBackColor = true;
//
// RenameDialog
//
this.AcceptButton = this.okbtn;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Control;
this.CancelButton = this.cancelbtn;
this.Controls.Add(this.okbtn);
this.Controls.Add(this.cancelbtn);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtname);
this.ForeColor = System.Drawing.SystemColors.ControlText;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "RenameDialog";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.ResumeLayout(false);
this.PerformLayout();
}
示例7: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this._tbImageToDecompose = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this._btnDecompose = new System.Windows.Forms.Button();
this._tbSaveImage = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// _tbImageToDecompose
//
this._tbImageToDecompose.Location = new System.Drawing.Point(15, 25);
this._tbImageToDecompose.Name = "_tbImageToDecompose";
this._tbImageToDecompose.Size = new System.Drawing.Size(292, 20);
this._tbImageToDecompose.TabIndex = 0;
this._tbImageToDecompose.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TbImageToDecomposeMouseDoubleClick);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(204, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Select image to decompose (double click)";
//
// _btnDecompose
//
this._btnDecompose.Location = new System.Drawing.Point(232, 77);
this._btnDecompose.Name = "_btnDecompose";
this._btnDecompose.Size = new System.Drawing.Size(75, 23);
this._btnDecompose.TabIndex = 2;
this._btnDecompose.Text = "Decompose";
this._btnDecompose.UseVisualStyleBackColor = true;
this._btnDecompose.Click += new System.EventHandler(this.BtnDecomposeClick);
//
// _tbSaveImage
//
this._tbSaveImage.Location = new System.Drawing.Point(15, 51);
this._tbSaveImage.Name = "_tbSaveImage";
this._tbSaveImage.Size = new System.Drawing.Size(292, 20);
this._tbSaveImage.TabIndex = 3;
this._tbSaveImage.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TbSaveImageMouseDoubleClick);
//
// WinHaarWavelet
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(319, 112);
this.Controls.Add(this._tbSaveImage);
this.Controls.Add(this._btnDecompose);
this.Controls.Add(this.label1);
this.Controls.Add(this._tbImageToDecompose);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(335, 150);
this.MinimumSize = new System.Drawing.Size(335, 150);
this.Name = "WinHaarWavelet";
this.Text = "WinHaarWavelet";
this.ResumeLayout(false);
this.PerformLayout();
}
示例8: Start
public void Start()
{
_threadSynchronizer = new System.Windows.Forms.Label();
IntPtr handle = _threadSynchronizer.Handle;
_done = false;
_thread.Start();
}
示例9: InitializeComponent
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.lbTotal = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lbTotal
//
this.lbTotal.Location = new System.Drawing.Point(0, 251);
this.lbTotal.Name = "lbTotal";
this.lbTotal.Size = new System.Drawing.Size(156, 23);
this.lbTotal.TabIndex = 0;
this.lbTotal.Text = "Carregando Registros...";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.Add(this.lbTotal);
this.Name = "MainForm";
this.Text = "NSync";
this.Load += new System.EventHandler(this.MainFormLoad);
this.ResumeLayout(false);
}
示例10: InitializeComponent
private void InitializeComponent() {
this.lblMessage = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblMessage
//
this.lblMessage.BackColor = System.Drawing.Color.Transparent;
this.lblMessage.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
this.lblMessage.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.lblMessage.Location = new System.Drawing.Point(0, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new System.Drawing.Size(294, 76);
this.lblMessage.TabIndex = 0;
this.lblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lblMessage.UseMnemonic = false;
//
// PleaseWaitDialog
//
this.ClientSize = new System.Drawing.Size(294, 76);
this.ControlBox = false;
this.Controls.Add(this.lblMessage);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.Name = "PleaseWaitDialog";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Please Wait...";
this.ResumeLayout(false);
}
示例11: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent()
{
this.lblBotomBar = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblBotomBar
//
this.lblBotomBar.Dock = System.Windows.Forms.DockStyle.Fill;
this.lblBotomBar.Location = new System.Drawing.Point(0, 0);
this.lblBotomBar.Margin = new System.Windows.Forms.Padding(0);
this.lblBotomBar.Name = "lblBotomBar";
this.lblBotomBar.Size = new System.Drawing.Size(0, 31);
this.lblBotomBar.TabIndex = 0;
//
// BottomControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.lblBotomBar);
this.Margin = new System.Windows.Forms.Padding(0);
this.MaximumSize = new System.Drawing.Size(0, 31);
this.MinimumSize = new System.Drawing.Size(0, 31);
this.Name = "BottomControl";
this.Size = new System.Drawing.Size(0, 31);
this.ResumeLayout(false);
}
示例12: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PasswordBox));
this.textBox = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox
//
resources.ApplyResources(this.textBox, "textBox");
this.textBox.Name = "textBox";
this.textBox.UseSystemPasswordChar = true;
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
//
// PasswordBox
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.textBox);
this.Controls.Add(this.label2);
this.MaximumSize = new System.Drawing.Size(352, 36);
this.MinimumSize = new System.Drawing.Size(50, 36);
this.Name = "PasswordBox";
this.ResumeLayout(false);
this.PerformLayout();
}
示例13: InitializeComponent
private void InitializeComponent() {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FileScanDialog));
this.prbScanProgress = new System.Windows.Forms.ProgressBar();
this.lblScanProgress = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// prbScanProgress
//
resources.ApplyResources(this.prbScanProgress, "prbScanProgress");
this.prbScanProgress.Maximum = 1000;
this.prbScanProgress.Name = "prbScanProgress";
//
// lblScanProgress
//
resources.ApplyResources(this.lblScanProgress, "lblScanProgress");
this.lblScanProgress.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.lblScanProgress.Name = "lblScanProgress";
//
// FileScanDialog
//
resources.ApplyResources(this, "$this");
this.Controls.Add(this.prbScanProgress);
this.Controls.Add(this.lblScanProgress);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "FileScanDialog";
this.ShowInTaskbar = false;
this.ResumeLayout(false);
}
示例14: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.lblText = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// lblText
//
this.lblText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lblText.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblText.Location = new System.Drawing.Point(0, 0);
this.lblText.Name = "lblText";
this.lblText.Size = new System.Drawing.Size(30, 30);
this.lblText.TabIndex = 0;
this.lblText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lblText.Click += new System.EventHandler(this.lblText_Click);
this.lblText.MouseEnter += new System.EventHandler(this.lblText_MouseEnter);
this.lblText.MouseLeave += new System.EventHandler(this.lblText_MouseLeave);
//
// CardButton
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.lblText);
this.Name = "CardButton";
this.Size = new System.Drawing.Size(30, 30);
this.ResumeLayout(false);
}
示例15: InitializeComponent
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.labelDescription = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// labelDescription
//
this.labelDescription.Anchor = System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top;
this.labelDescription.Font = new System.Drawing.Font("Arial", 14.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0xcc);
this.labelDescription.Location = new System.Drawing.Point(8, 8);
this.labelDescription.BackColor = System.Drawing.SystemColors.Window;
this.labelDescription.Size = new System.Drawing.Size(428, 48);
this.labelDescription.Name = "labelDescription";
this.labelDescription.TabIndex = 0;
this.labelDescription.Text = "Enter Step Description Here";
base.Controls.Add(this.labelDescription);
//
// WizardExteriorStep
//
this.BackColor = System.Drawing.SystemColors.Window;
this.Name = "WizardExteriorStep";
this.Size = new System.Drawing.Size(444, 417);
this.ResumeLayout(false);
}