Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Servus liebe FIAE Gemeinde,

ich melde mich hier als FiSi mal zu Wort da ich eine kurze Frage zu Visual Basic habe.

Ich habe mit Textboxen und einem Button eine Loginmaske erstellt. Diese läuft soweit ganz gut, aber ich will das der Inhalt der Passwort-Box beim eingeben verborgen wird (mit * oder so).

 

Kann man das irgendwie realisieren? Hab wenig dazu gefunden.

 

Lg

Visual Basic .NET oder VB6?

Visual Basic .NET:

' Visual Basic
Private Sub InitializeMyControl()
   ' Set to no text.
   TextBox1.Text = ""
   ' The password character is an asterisk.
   TextBox1.PasswordChar = "*"
   ' The control will allow no more than 14 characters.
   TextBox1.MaxLength = 14
End Sub

 

Im Visual Studio 2010+ gab es zumindest für C# auch eine richtige fertige Passworttextbox. Gibt es sowas nicht auch bei Visual Basic? Die Elemente sind dort doch ähnlich.

 

  • Autor
vor 23 Stunden schrieb Gurki:

Visual Basic .NET oder VB6?

Visual Basic .NET:


' Visual Basic
Private Sub InitializeMyControl()
   ' Set to no text.
   TextBox1.Text = ""
   ' The password character is an asterisk.
   TextBox1.PasswordChar = "*"
   ' The control will allow no more than 14 characters.
   TextBox1.MaxLength = 14
End Sub

 

Im Visual Studio 2010+ gab es zumindest für C# auch eine richtige fertige Passworttextbox. Gibt es sowas nicht auch bei Visual Basic? Die Elemente sind dort doch ähnlich.

 

Dein Lösungsansatz hört sich echt gut an. Dennoch funktioniert es leider nicht. Wenn ich in das Textfeld was reinschreibe ist der Inhalt immer noch sichtbar. 

  • Autor
Gerade eben schrieb mfk'); DROP TABLE Users;--:

Dann hast du bei der Umsetzung etwas falsch gemacht. Ich hoffe, du hast nicht einfach nur diesen Codeschnipsel irgendwo eingefügt.

Nein nein, ich habe den Ausschnitt von @Gurki zwar eingefügt aber angepasst. Sprich die richtigen Textboxen ausgewählt, etc. 

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.