void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); for (int i = 0; i < 40; i++) { TreeNode node = _treeView.Nodes.Add ("Node #" + i.ToString (CultureInfo.InvariantCulture)); for (int j = 0; j < 5; j++) { TreeNode childLevelOne = node.Nodes.Add (string.Format (CultureInfo.InvariantCulture, "Childnode #{0}.{1} Level 1", i, j)); for (int k = 0; k < 3; k++) { TreeNode childLevelTwo = childLevelOne.Nodes.Add (string.Format (CultureInfo.InvariantCulture, "Childnode #{0}.{1}.{2} Level 2", i, j, k)); for (int l = 0; l < 2; l++) { TreeNode childLevelThree = childLevelTwo.Nodes.Add (string.Format (CultureInfo.InvariantCulture, "Childnode #{0}.{1}.{2}.{3} Level 3", i, j, k, l)); for (int m = 0; m < 2; m++) { childLevelThree.Nodes.Add (string.Format (CultureInfo.InvariantCulture, "Childnode #{0}.{1}.{2}.{3}.{4} Level 4 With Some Very Long Text", i, j, k, l, m)); } } } } } _treeView.ExpandAll (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); ShowModalButton_Click (sender, e); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); _textBox.Text = "Line One\nLine Two\r\nLineThree\rLineFour\r\bLineFive"; }
static void Main () { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); NativeWindow nw = new NativeWindow (); CreateParams cp = new CreateParams (); cp.Caption = "bug #80817"; cp.X = 100; cp.Y = 100; cp.Width = 400; cp.Height = 600; cp.ClassStyle = (int) (ClassStyle.CS_VREDRAW | ClassStyle.CS_HREDRAW); cp.Style = (int) WindowStyles.WS_OVERLAPPEDWINDOW; // create the window. nw.CreateHandle (cp); ShowWindow (nw.Handle, WindowPlacementFlags.SW_SHOWNORMAL); UpdateWindow (nw.Handle); MSG msg = new MSG (); while (GetMessage (ref msg, 0, 0, 0) > 0) { TranslateMessage (ref msg); DispatchMessage (ref msg); } }
void MainForm_Load (object sender, EventArgs e) { _treeView.Nodes.Add ("A"); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); _errorProvider.SetError (_textBox, "Mono"); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); _checkedListBox.Items.Add ("Let's add some item that is really long, allowing us to scroll horizontally."); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); _propertyGrid.SelectedObject = new Config (); }
void MainForm_Load (object sender, EventArgs e) { TreeNode root = new TreeNode ("Root"); _treeView.Nodes.Add (root); root.Nodes.Add ("Child 1"); root.Nodes.Add ("Child 2"); root.Nodes.Add ("Child 3"); TreeNode child4 = root.Nodes.Add ("Child 4"); child4.Nodes.Add ("Child 4_1"); child4.Nodes.Add ("Child 4_2"); child4.Nodes.Add ("Child 4_3"); child4.Nodes.Add ("Child 4_4"); child4.Nodes.Add ("Child 4_5"); child4.Nodes.Add ("Child 4_6"); child4.Nodes.Add ("Child 4_7"); TreeNode child5 = root.Nodes.Add ("Child 5"); child5.Nodes.Add ("Child 5_1"); child5.Nodes.Add ("Child 5_2"); TreeNode child53 = child5.Nodes.Add ("Child 5_3"); child53.Nodes.Add ("Child 5_3_1"); child53.Nodes.Add ("Child 5_3_2"); child53.Nodes.Add ("Child 5_4"); root.Nodes.Add ("Child 6"); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { DataTable dataTable = new DataTable (); dataTable.Columns.Add ("displaymember"); dataTable.Columns.Add ("valuemember"); DataRow row = dataTable.NewRow (); row [0] = "lower"; row [1] = "a"; dataTable.Rows.Add (row); row = dataTable.NewRow (); row [0] = "upper"; row [1] = "A"; dataTable.Rows.Add (row); row = dataTable.NewRow (); row [0] = "else"; row [1] = "e"; dataTable.Rows.Add (row); row = dataTable.NewRow (); row [0] = "inter"; row [1] = "i"; dataTable.Rows.Add (row); row = dataTable.NewRow (); row [0] = "net"; row [1] = "I"; dataTable.Rows.Add (row); _comboBox.DataSource = dataTable; _comboBox.DataBindings.Add ("SelectedValue", new Controller (_selectedValueText), "controlsrc"); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { Visible = false; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); SetImage (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); OutputCounters (); }
void MainForm_Load (object sender, EventArgs e) { _label.Text = ClientSize.ToString (); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { UpdateLocationChanged (); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); Form child1 = new Form (); child1.BackColor = Color.Blue; child1.Height = 200; child1.MdiParent = this; child1.Text = "Child #1"; child1.Show (); Form child2 = new Form (); child2.BackColor = Color.Red; child2.Height = 200; child2.MdiParent = this; child2.Text = "Child #2"; child2.Show (); Form child3 = new Form (); child3.BackColor = Color.Green; child3.Height = 200; child3.MdiParent = this; child3.Text = "Child #3"; child3.Show (); }
static void Main () { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); MessageBox.Show (new String ('a', 1000), "bug #343364"); }
void MainForm_Load (object sender, EventArgs e) { _label.Text = "Mono Windows Forms"; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { _textBox.Lines = new string [] { "Mono's", "Managed Windows Forms", "ROCKS!" }; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { _richTextBox.SelectionColor = Color.Black; _richTextBox.AppendText ("should be colored black"); _richTextBox.SelectionColor = Color.Red; _richTextBox.AppendText (Environment.NewLine + "should have a red color"); _richTextBox.SelectionColor = Color.Empty; _richTextBox.AppendText (Environment.NewLine + "should be default color"); _richTextBox.SelectionColor = Color.Black; _richTextBox.AppendText (Environment.NewLine + "should be colored black"); _richTextBox.SelectionFont = new Font (_richTextBox.SelectionFont, FontStyle.Bold); _richTextBox.AppendText (" and now bold"); _richTextBox.SelectionColor = Color.Red; _richTextBox.AppendText (Environment.NewLine + "should have a red color and bold"); _richTextBox.SelectionColor = Color.Empty; _richTextBox.AppendText (Environment.NewLine + "should be default color and bold"); _textBox.AppendText ("should be colored black"); _textBox.AppendText (Environment.NewLine + "should have a red color"); _textBox.AppendText (Environment.NewLine + "should be default color"); _textBox.AppendText (Environment.NewLine + "should be colored black"); _textBox.AppendText (" and now bold"); _textBox.AppendText (Environment.NewLine + "should have a red color and bold"); _textBox.AppendText (Environment.NewLine + "should be default color and bold"); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { _pictureBox.Image = Image.FromFile ("the_sign-animated.gif"); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { for (int i = 0; i <= 4; i++) AddButton (i); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); _listView.Items.Add ("One"); _listView.Items.Add ("Two"); }
void MainForm_Load (object sender, EventArgs e) { Array values = Enum.GetValues (typeof (PropertySort)); _sortListBox.DataSource = values; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { string dir = AppDomain.CurrentDomain.BaseDirectory; _richTextBox.LoadFile (Path.Combine (dir, "sample.rtf")); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { CreateArrayList (); _dataGridView.DataSource = _list; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { _richTextBox.Text = "Some Text That Should Allow Us To Test The " + "Visual Effect Of The WordWrap property."; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs ea) { _fixedSplitterComboBox.DataSource = Enum.GetValues (typeof (FixedPanel)); _fixedSplitterComboBox.SelectedItem = _splitContainer.FixedPanel; InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { for (int i = 0; i < 50; i++) { _listView.Items.Add ("Item " + i.ToString (CultureInfo.InvariantCulture)); } InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }
void MainForm_Load (object sender, EventArgs e) { string imageFile = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "logo.gif"); _pictureBox.Image = Image.FromFile (imageFile); InstructionsForm instructionsForm = new InstructionsForm (); instructionsForm.Show (); }