İnputBox (“Görüntülenecek mesaj” , “Pencere başlığı” , “Varsayılan mesaj” , x pozisyonuy pozisyonu)
şeklinde tanımlanır.
string bolum= Microsoft.VisualBasic.Interaction.InputBox ( "BölümünüzüGiriniz","Bölüm Girişi","",20,20);MessageBox.Show(bolum);
Program Örneği ;
private void button1_Click(object sender, EventArgs e) { string IsimGirisi = Interaction.InputBox("Bilgi Girişi", "Adınızı Giriniz.", "Örn: Ali", 0, 0); MessageBox.Show("Girilen isim: " + IsimGirisi); }
Çıktı ;