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.

FormBorderStyle elemanın Sizable olması gereekir. Zaten Form sınıfı için <strong>bu</strong> property defaultolarak <strong>bu</strong> değerdedir. Eğer programcı anapencerenin boyutlandırılabilir olmasını istemiyorsaFormBorderStyle property sine Sizable yerine Fixed içeren başka bir değer atamalıdır.Örneğin: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 = "Sample E<strong>ve</strong>nt";this.FormBorderStyle = FormBorderStyle.Fixed3D;//boyutlandırılamaz.this.MouseDown += new MouseE<strong>ve</strong>ntHandler(mouseDownHandler);}private void mouseDownHandler(object sender, MouseE<strong>ve</strong>ntArgs mea){if (mea.Button == MouseButtons.Left){MessageBox.Show(mea.Location.ToString());}}}}}Görüldüğü gibi FormBorderStyle propertysi hem anapencerenin kenar çizgilerini belirlemekte hemde anapencerenin boyutlandırılabilir olup olmadığını belirlemektedir.using System;using System.Windows.Forms;using System.Drawing;namespace CSD{class App{public static void Main(){Application.Run(new MyForm());35

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

Saved successfully!

Ooh no, something went wrong!