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 beim GotFocus zweites Form mit in den Vordergrund rücken.

Empfohlene Antworten

Veröffentlicht

hi leute,

ich hab wiedermal meine probleme mit forms und deren positionierung vor oder hinter anderen fenstern.

momentan folgende sittuation.

ich habe zwei forms offen (eines davon ohne rahmen, welches sich allerdings immer an das primäre form anhängt).

bekommt das erste form nun den focus möchte ich gewährleisten dass das zweite form auch in den vordergrund gerückt wird (allerdings nicht den focus bekommt). momentan löse ich im GotFocus-Ereignis des haupt-forms einfach ein focus des zweiten forms aus und danach wieder ein activate des haupt-forms.

    Private Sub mdi_mainform_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.GotFocus

        Try

            subform.Focus()

            Me.Activate()

        Catch err As SystemException

            MsgBox(err.ToString)

        End Try

    End Sub

das ganze funktioniert zwar. allerdings wird allem anschein nach nach dem activate wieder ein gotfocus ausgelöst wodurch die beiden forms im focus ein paar mal hin und her springen bevor es sich irgendwie "einpendelt".

diesese "hin und herspringen" würd ich allerdings gerne vermeiden.

lg

jasso

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.