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.

Wie kann ich es in meinem .NET programm so einbinden, dass wie in Microsoft Word eine Bestätigung benötigt wird, wenn man das Programm beenden will?

( Sind sie sich sicher, dass sie dieses Programm beenden wollen? )

Wenn ich das über die Menüleiste mach, ist das kein Problem. Was aber, wenn der Benutzer das Programm mit dem X oben Rechts beendet? Dort soll die Meldung erscheinen.

Liebe Grüße

errox

Wie es genau geht, weiß ich auch nicht. Aber ich weiß, dass die drei Felder zum Minimieren, Maximieren und zum Schließen des Form "ControlBox" heißen. Vielleicht gibt es ja für die ein Event, was du abfragen könntest.

Gruß Kati82

  • Autor

Hallo.

Danke für die Schnelle antwort.

Ich weiss schon, wie ich den Code einsetzen kann. Aber für was add () und was remove() ist, weiss ich nicht.

Wie kann ich es genau in die Praxis umsetzen?

Ich habs vorerst so ( ohne funktion :( )


#pragma endregion

		void add(Object^ sender, EventArgs^ e)

		{

			MessageBox::Show("HAllo");

		}

		void remove(Object^ sender, EventArgs^ e)

		{

			MessageBox::Show("HAllo");

		}

	public:

		event FormClosingEventHandler^ FormClosing 

		{

			void add (FormClosingEventHandler^ value);

			void remove (FormClosingEventHandler^ value);

		}

Liee Grüße

errox

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.