Postingan

Menampilkan postingan dari Juni, 2014

method

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace belajar_method {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         public void belajar1()         {             textBox1.Text = "belajar method 1" ;         }         private void button1_Click( object sender, EventArgs e)         { ...

class dan method

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace membuatClass {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click( object sender, EventArgs e)         {             nama();         }         public void nama()         {       ...

panel C#

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace another {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click( object sender, EventArgs e)         {             panel1.Hide();         }         private void button2_Click( object sender, EventArgs e)         {...

groupBox

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace cobalagi {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Form1_Load( object sender, EventArgs e)         {             groupBox1.BackColor = Color .Black;             groupBox1.Text = "pilihan pertama" ;             grou...

printDialog pageSetupDialog, PrintDocument, printPreviewDialog

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace prindialog {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click( object sender, EventArgs e)         {             pageSetupDialog1.ShowDialog();         }         private void printDocument1_PrintPage( object sender, System.Drawing.Printing. Print...

fontdialog

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace gantiTulisan {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click( object sender, EventArgs e)         {             DialogResult A = fontDialog1.ShowDialog();             if (A == DialogResult .OK)             ...

ColorDialog

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace warnadialog {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void button1_Click( object sender, EventArgs e)         {             colorDialog1.ShowDialog();             //klo udah klik OK di dialog warna... ini yg terjadi          ...

ContexMenuStrip

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace percobaankonteksmenu {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void contextMenuStrip1_Opening( object sender, CancelEventArgs e)         {         }         private void showToolStripMenuItem_Click( object sender, EventArgs e)         {      ...