Skip to content

Instantly share code, notes, and snippets.

@canokay
Created November 11, 2018 11:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canokay/40cfacd2f4856eb48c270fff55d304c4 to your computer and use it in GitHub Desktop.
Save canokay/40cfacd2f4856eb48c270fff55d304c4 to your computer and use it in GitHub Desktop.
Visual Basic Inputbox Examples
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ListBox1.Items.Add(InputBox("Ad ve Soyad giriniz", "Bilgi girisi", " "))
End Sub
End Class
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim a, b, c As Integer
a = InputBox("Sayı giriniz", "Integer Örnek", "", 120, 120)
b = 2
c = a * b
MessageBox.Show("Sonuç" & c, "Integer Örnek")
End Sub
End Class
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ad, liste, sonuc As String
ad = Microsoft.VisualBasic.Interaction.InputBox("Adınız ve Soyadınız", "Öğrenci bilgi girişi", "", 120, 120)
liste = ad
sonuc = Microsoft.VisualBasic.Strings.Right(liste, 3)
MessageBox.Show(sonuc)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment