Created
November 11, 2018 11:18
-
-
Save canokay/40cfacd2f4856eb48c270fff55d304c4 to your computer and use it in GitHub Desktop.
Visual Basic Inputbox Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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