Csharp Butonla Form Boyutunu Değiştirme
C# Butonla Form Boyutunu Değiştirme. TextBox lara girdiğimiz değerlere göre formun genişlik ve yükseklikleri ayarlanıyor. Girilen değerler piksel cinsinden boyutları oluşturuyor.
Program Kodları:
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 butonla_form_kontrolü { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //Formun Genişlik değeri piksel olarak this.Width = Convert.ToInt16(textBox1.Text); //Formun Yükseklik değeri piksel olarak this.Height = Convert.ToInt16(textBox2.Text); } } }
Ekran Görüntüleri

Program Kodları:
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 butonla_form_kontrolü { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //Formun Genişlik değeri piksel olarak this.Width = Convert.ToInt16(textBox1.Text); //Formun Yükseklik değeri piksel olarak this.Height = Convert.ToInt16(textBox2.Text); } } }
Ekran Görüntüleri

Bu Yazıya Tepkin Nedir?
+1
1
+1
+1
+1
+1
+1
+1
<< Önceki Yazı
Sonraki Yazı >>
c#, C# Butonla Form Boyutunu Değiştirme, c# kodları, c# örnekleri, csahrp kodları, csharp, Csharp Butonla Form Boyutunu Değiştirme, csharp örnekleri