Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add a multiline label

svn path=/trunk/winforms/; revision=65359
  • Loading branch information...
commit 2c15dc2c6241acd6554b3fa0fed2350a88466d12 1 parent bd237d9
Chris Toshok authored
Showing with 14 additions and 2 deletions.
  1. +14 −2 label/swf-label.cs
View
16 label/swf-label.cs
@@ -26,11 +26,12 @@ class MainForm : System.Windows.Forms.Form
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
- private System.Windows.Forms.Label label21;
+ private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label25;
+ private System.Windows.Forms.Label label26;
public MainForm()
{
@@ -61,6 +62,7 @@ public MainForm()
this.label21 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
+ this.label26 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
@@ -261,6 +263,15 @@ public MainForm()
this.label25.TabIndex = 24;
this.label25.Text = "A normal label : BorderStyle=FixedSingle , AutoSize=true";
//
+ // label26
+ //
+ this.label26.AutoSize = true;
+ this.label26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label26.Location = new System.Drawing.Point(10, 520);
+ this.label26.Name = "label25";
+ this.label26.TabIndex = 24;
+ this.label26.Text = "A multiline label\nBorderStyle=FixedSingle , AutoSize=true";
+ //
// label19
//
this.label19.BackColor = System.Drawing.Color.Red;
@@ -297,8 +308,9 @@ public MainForm()
//
// MainForm
//
- this.ClientSize = new System.Drawing.Size(480, 533);
+ this.ClientSize = new System.Drawing.Size(480, 563);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
+ this.label26,
this.label25,
this.label24,
this.label23,
Please sign in to comment.
Something went wrong with that request. Please try again.