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.

[vb.net] Fenstergebundene Hotkeys

Empfohlene Antworten

Bin (leider) schon seit nem guten halben Jahr nit mehr in der .NET Entwicklung drin, aber müssten die Fenster nit ein ".IsFocused" haben? Auf jedenfall nen Attribut, dass dir zeigt, ob das Fenster das aktive Fenster ist.

Darauf dann einfach im KeyPress / KeyDown / etc. (wo auch immer du auf dein Strg + 1 reagierst) prüfen und fertig :)

du musst entweder das keydown ereignis der form verwenden

oder deines controls

nicht zu vergessen:

in den optionen --> keypreview der form muss auf true sein!

Das KeyPreview hatte ich vergessen deswegen funktionierte mein Denkansatz auch nicht richtig.

Allerdings hat sich herausgestellt, dass sich das Problem mit den KeyEvents auch nicht zu lösen ist, da in der Form ActiveX Steuerelemente sind in denen die Hotkeys dann nicht funktionieren.

Ich habs jetzt so gelöst, dass ich Globale Hotkeys deklariere und in der jeweiligen Form überprüfe ob das ankommende Hotkey für die Form zutreffend ist und ob die Form den Focus hat.

Ich dank euch dennoch für die Hilfe :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.