@@ -56,40 +56,44 @@ protected override void Dispose( bool disposing )
56
56
/// </summary>
57
57
private void InitializeComponent ( )
58
58
{
59
- this . button1 = new System . Windows . Forms . Button ( ) ;
60
- this . dataGrid1 = new System . Windows . Forms . DataGrid ( ) ;
61
- ( ( System . ComponentModel . ISupportInitialize ) ( this . dataGrid1 ) ) . BeginInit ( ) ;
62
- this . SuspendLayout ( ) ;
63
- //
64
- // button1
65
- //
66
- this . button1 . Location = new System . Drawing . Point ( 376 , 344 ) ;
67
- this . button1 . Name = "button1" ;
68
- this . button1 . TabIndex = 0 ;
69
- this . button1 . Text = "Show" ;
70
- this . button1 . Click += new System . EventHandler ( this . button1_Click ) ;
71
- //
72
- // dataGrid1
73
- //
74
- this . dataGrid1 . DataMember = "" ;
75
- this . dataGrid1 . HeaderForeColor = System . Drawing . SystemColors . ControlText ;
76
- this . dataGrid1 . Location = new System . Drawing . Point ( 8 , 8 ) ;
77
- this . dataGrid1 . Name = "dataGrid1" ;
78
- this . dataGrid1 . Size = new System . Drawing . Size ( 448 , 328 ) ;
79
- this . dataGrid1 . TabIndex = 1 ;
80
- //
81
- // Form1
82
- //
83
- this . AutoScaleBaseSize = new System . Drawing . Size ( 5 , 13 ) ;
84
- this . ClientSize = new System . Drawing . Size ( 464 , 373 ) ;
85
- this . Controls . AddRange ( new System . Windows . Forms . Control [ ] {
86
- this . dataGrid1 ,
87
- this . button1 } ) ;
88
- this . Name = "Form1" ;
89
- this . Text = "Print Grid" ;
90
- this . Load += new System . EventHandler ( this . Form1_Load ) ;
91
- ( ( System . ComponentModel . ISupportInitialize ) ( this . dataGrid1 ) ) . EndInit ( ) ;
92
- this . ResumeLayout ( false ) ;
59
+ System . ComponentModel . ComponentResourceManager resources = new System . ComponentModel . ComponentResourceManager ( typeof ( Form1 ) ) ;
60
+ this . button1 = new System . Windows . Forms . Button ( ) ;
61
+ this . dataGrid1 = new System . Windows . Forms . DataGrid ( ) ;
62
+ ( ( System . ComponentModel . ISupportInitialize ) ( this . dataGrid1 ) ) . BeginInit ( ) ;
63
+ this . SuspendLayout ( ) ;
64
+ //
65
+ // button1
66
+ //
67
+ this . button1 . Location = new System . Drawing . Point ( 355 , 334 ) ;
68
+ this . button1 . Name = "button1" ;
69
+ this . button1 . Size = new System . Drawing . Size ( 100 , 30 ) ;
70
+ this . button1 . TabIndex = 0 ;
71
+ this . button1 . Text = "Show" ;
72
+ this . button1 . Click += new System . EventHandler ( this . button1_Click ) ;
73
+ //
74
+ // dataGrid1
75
+ //
76
+ this . dataGrid1 . DataMember = "" ;
77
+ this . dataGrid1 . HeaderForeColor = System . Drawing . SystemColors . ControlText ;
78
+ this . dataGrid1 . Location = new System . Drawing . Point ( 8 , 8 ) ;
79
+ this . dataGrid1 . Name = "dataGrid1" ;
80
+ this . dataGrid1 . Size = new System . Drawing . Size ( 448 , 319 ) ;
81
+ this . dataGrid1 . TabIndex = 1 ;
82
+ //
83
+ // Form1
84
+ //
85
+ this . AutoScaleBaseSize = new System . Drawing . Size ( 5 , 13 ) ;
86
+ this . ClientSize = new System . Drawing . Size ( 462 , 374 ) ;
87
+ this . Controls . Add ( this . dataGrid1 ) ;
88
+ this . Controls . Add ( this . button1 ) ;
89
+ this . FormBorderStyle = System . Windows . Forms . FormBorderStyle . FixedSingle ;
90
+ this . Icon = ( ( System . Drawing . Icon ) ( resources . GetObject ( "$this.Icon" ) ) ) ;
91
+ this . MaximizeBox = false ;
92
+ this . Name = "Form1" ;
93
+ this . Text = "Print Grid" ;
94
+ this . Load += new System . EventHandler ( this . Form1_Load ) ;
95
+ ( ( System . ComponentModel . ISupportInitialize ) ( this . dataGrid1 ) ) . EndInit ( ) ;
96
+ this . ResumeLayout ( false ) ;
93
97
94
98
}
95
99
#endregion
@@ -100,7 +104,8 @@ private void InitializeComponent()
100
104
[ STAThread ]
101
105
static void Main ( )
102
106
{
103
- Application . Run ( new Form1 ( ) ) ;
107
+ Application . EnableVisualStyles ( ) ;
108
+ Application . Run ( new Form1 ( ) ) ;
104
109
}
105
110
106
111
public class BusinessEntity
0 commit comments