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.

Cursor in Textbox

Empfohlene Antworten

Veröffentlicht

Hallo, hab grad folgendes Problem(Visual Basic)

möchte in einer Textbox den Cursor setzen.

Nach dem Befehl: .Text = Replace(.Text, ",", ".") springt der Cursor ganz nach links. Ich möchte ihn aber gerne an der Stelle haben, nachdem das Komma gedrückt wurde, damit man weiterschreiben kann.

Kann mir einer helfen?

Danke!

warum machste da keine 'sendkeys' anweisung mit den pfeiltasten? also solange bis deine gewünschte stelle erreicht wird (in denem Falle, ähh, *zurücksurf* (len(.text)-1) ). wäre ne recht einfache Möglichkeit, müßte aber gehen, oder?

  • 2 Wochen später...

Hi,

ich würde hergehen und würde ins "KeyPress" Ereignis der TextBox folgendes reinschreiben:

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii = 44 Then KeyAscii = 46

End Sub

Damit wird das "," gleich mit einem "." ersetzt und es kann ganz normal weitergetippt werden.

hiro

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.