12.07.2015 Views

bu döküman kaan aslan tarafından c ve sistem ... - Kitabxana

bu döküman kaan aslan tarafından c ve sistem ... - Kitabxana

bu döküman kaan aslan tarafından c ve sistem ... - Kitabxana

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{Application.Run(new MyForm());}class MyForm : Form{public MyForm(){this.Text = "Örnek Pencere";this.BackColor = System.Drawing.Color.Red;this.StartPosition = FormStartPosition.Manual;this.Bounds = new Rectangle(100, 100, 0, 0);this.ClientSize = new Size(100, 100);MessageBox.Show("this is a test", "Error", MessageBoxButtons.OKCancel,MessageBoxIcon.Question);}}//...}}Geri dönüş değeri hangi tuşla çıktığımızı belirtir.using System;using System.Windows.Forms;using System.Drawing;namespace CSD{class App{public static void Main(){Application.Run(new MyForm());}class MyForm : Form{public MyForm(){this.Text = "Örnek Pencere";this.BackColor = System.Drawing.Color.Red;this.StartPosition = FormStartPosition.Manual;this.Bounds = new Rectangle(100, 100, 0, 0);this.ClientSize = new Size(100, 100);DialogResult result = MessageBox.Show("this is a test", "Error",MessageBoxButtons.OKCancel, MessageBoxIcon.Question);if (result == DialogResult.OK)MessageBox.Show("Ok");25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!