41 |
private TabPage tabPage26; |
private TabPage tabPage26; |
42 |
private TabPage tabPage27; |
private TabPage tabPage27; |
43 |
private TabPage tabPage28; |
private TabPage tabPage28; |
44 |
|
private TabPage tabPage29; |
45 |
private StatusBar statusBar; |
private StatusBar statusBar; |
46 |
|
|
47 |
// Tab1 Labels Test |
// Tab1 Labels Test |
334 |
private NumericUpDown upDown4; |
private NumericUpDown upDown4; |
335 |
private NumericUpDown upDown3ro; |
private NumericUpDown upDown3ro; |
336 |
private NumericUpDown upDown4ro; |
private NumericUpDown upDown4ro; |
337 |
|
|
338 |
|
// tabPage29 Datagrid |
339 |
|
private DataGrid dataGrid; |
340 |
#endregion |
#endregion |
341 |
|
|
342 |
public static void Main(String[] args) |
public static void Main(String[] args) |
445 |
tabPage28 = new TabPage(); |
tabPage28 = new TabPage(); |
446 |
tabPage28.Text = "TrackBar"; |
tabPage28.Text = "TrackBar"; |
447 |
tabControl1.Controls.Add(tabPage28); |
tabControl1.Controls.Add(tabPage28); |
448 |
|
tabPage29 = new TabPage(); |
449 |
|
tabPage29.Text = "DataGrid"; |
450 |
|
tabControl1.Controls.Add(tabPage29); |
451 |
|
|
452 |
statusBar = new StatusBar(); |
statusBar = new StatusBar(); |
453 |
statusBar.Dock = DockStyle.Bottom; |
statusBar.Dock = DockStyle.Bottom; |
489 |
AddMessageBoxTest(tabPage26); |
AddMessageBoxTest(tabPage26); |
490 |
AddUpDownTest(tabPage27); |
AddUpDownTest(tabPage27); |
491 |
AddTrackbarTest(tabPage28); |
AddTrackbarTest(tabPage28); |
492 |
|
AddDataGrid(tabPage29); |
493 |
|
|
494 |
// Add the events here after the controls have been added |
// Add the events here after the controls have been added |
495 |
// to the pages, otherwise the events will not be raised |
// to the pages, otherwise the events will not be raised |
3941 |
TabPage tabPage = (sender as TabControl).SelectedTab; |
TabPage tabPage = (sender as TabControl).SelectedTab; |
3942 |
statusBar.Text = tabPage.Text; |
statusBar.Text = tabPage.Text; |
3943 |
} |
} |
3944 |
|
|
3945 |
|
private void AddDataGrid(Control c) |
3946 |
|
{ |
3947 |
|
dataGrid = new DataGrid(); |
3948 |
|
dataGrid.Location = new Point(50, 20); |
3949 |
|
dataGrid.Size = new System.Drawing.Size(400, 500); |
3950 |
|
dataGrid.Text = "Data Grid"; |
3951 |
|
c.Controls.Add(dataGrid); |
3952 |
|
} |
3953 |
} |
} |
3954 |
} |
} |