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

Hallo!

Ich habe denke ich ein kleines Problem und komme aber einfach nicht auf die Lösung. Also ich habe ein mobiles CE 5.0 Gerät und schreibe hierfür in VB .NET eine Anwendung. In meinem Hauptformular rufe ich in einem Ereignis auf, das ein neues Fenster mit einem Objekt geöffnet wird:

dim formGeg = new frmGegenstand

formGeg.Show (Objekt)

Das funktioniert auch alles soweit. Jetzt habe ich das Problem wenn das Ereignis erneut aufgerufen wird soll das schon bestehende Formular geschlossen und ein neues geöffnet werden. Es wird das neue geöffnet und das alte bleibt im Hintergrund. Es soll aber geschlossen werden. Wie kann ich auf das schon geöffnete zugreifen. Ich möchte keine zusätzlichen Buttons verwenden, da sonst der Benutzer zu viel bedienen muss. Ich hoffe ich habe mich relativ klar ausgedrückt und mir kann jemand helfen.

Hallo!

Entschuldigung für den Doppelpost, aber ich habe kein Editieren gefunden.

Habe das Problem gelöst:

Ich habe eine globale Variable als Form deklariert die immer beim Öffnen eines neuen Forms befüllt wird. So kann ich nun überprüfen ob ein Form geöffnet ist und kann es auch schließen.

Private FormInvGeg As frmGegenstand

...

If Not FormInvGeg Is Nothing Then

FormInvGeg.Close()

End If

dim formGeg = new frmGegenstand

formGeg.Show (Objekt)

FormInvGeg = formGeg

...

Gibt es vielleicht eine schönere Methode mit weniger Code. Wem da was einfällt, ich bin für alles offen. Danke im Vorraus.

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.