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.

C# MessageBox muss bestätigt werden

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

habe folgendes Problem:

Habe in C# ein Programm geschrieben. Habe ein MDI Container in dem ich mehrere Forms anzeigen lasse. Jetzt möchte ich in einer diese MDIChild-Formen eine Datei einlesen. Der Code zum Einlesen der Datei steht in einer separaten Klasse. Aus dieser Klasse heraus würde ich jetzt gerne eine MessageBox aufrufen welche mir sagt, dass das Einlesen erfolgreich war.

Die MessageBox bekomme ich auch angezeigt, aber ich kann jetzt, auch wenn die MessageBox noch da ist, schön weiter auf meine anderen MDIChilf-Formen klicken und die MessageBox einfach ignorieren. D.h. eine zwingende Bestätigung ist nicht notwendig.

Lasse ich mir eine MessageBox aus eine MDIChild-Form anzeigen, so kann ich nichts tun, bis ich die MessageBox bestätigt habe.

Liegt das daran, dass ich die MessageBox aus einer Klasse heraus aufrufe und nicht aus einer Form? :rolleyes:

Wie bekomme ich es hin, dass die MessageBox bestätigt werden muss, bevor ich weiter mache?

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.