Skip to content

Instantly share code, notes, and snippets.

@canokay
Created November 11, 2018 21:27
Show Gist options
  • Save canokay/67c8f592a95cd5f84c381bfac660954d to your computer and use it in GitHub Desktop.
Save canokay/67c8f592a95cd5f84c381bfac660954d to your computer and use it in GitHub Desktop.
Visual Basic Const (Sabit) Example
Public Class Form1
Public Const deg As String = "İzmir Meslek Yüksekokulu"
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Text = deg
End Sub
End Class
Public Class Form1
Public Const okul_adi As String = "İzmir Meslek Yüksekokulu"
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ad, soyad As String
Dim okul_no As Integer
Me.Text = okul_adi
okul_no = InputBox("Okul Numarasını Giriniz")
TextBox1.Text = okul_no
ad = TextBox2.Text
soyad = TextBox3.Text
TextBox4.Text = TextBox1.Text + "" + "" + "" + TextBox2.Text + "" + "" + TextBox3.Text
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment