Vb.net - 1'den Fazla If Eklemek

S

Selyk

Prince Of Darkness
Super Moderator
Joined
Sep 6, 2020
Messages
2,470
Reaction score
1,626
1 Adet Textbox
1 Adet Button


Kendinize 2 tane kod belirleyelim. Ben "Selyk" ve "Selyk12"'yi belirledim.
Bu kodlardan biri ile program açılacak.

Code:
If TextBox1.Text = "Selyk" Then
            Form2.Show()
            Me.Hide()
            MsgBox("Başarılı! " & "''" & TextBox1.Text & "''" & " ile giriş yaptınız!")
        ElseIf TextBox1.Text = "Selyk12" Then
            Form2.Show()
            Me.Hide()
            MsgBox("Başarılı! " & "''" & TextBox1.Text & "''" & " ile giriş yaptınız!")
        Else
            MsgBox("Hata! Doğru yazın!")
        End If
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom