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#] Event nach zeichnen des Dialoges???

Empfohlene Antworten

Veröffentlicht

Hallo Leutz,

ich habe eine C# .netV1.1 Dialog-Anwendung.

Wie stelle ich es an, das ich ein Event erhalte, wenn mein Dialog fertig gezeichnet wurde.

Ich habe eine Methode die einen Zustand abfragt und je nachdem wie dieser Zustand ist, soll der Dialog (Form) Hide sein oder für den Benutzer angezeigt werden.

Danke schon mal

Verstehe nicht genau, was du bezwecken willst oder was fuer ein Event du suchst.

Reicht nicht einfach das Load-Event?

Leider nicht. Versuchs mal selber 'this.Hide()' in Load. Da macht das Prog nichts.

Ich brauch nicht immer einen Dlg. Aber davon kann ich nicht ausgehen. Deswegen erst mal Dlg zeichnen, Zustand auswerten und je nachdem, soll der Dlg Hide sein.

Also ich hab es noch nicht hinbekommen. Muß dazu sagen das ich erst seit 2 Wochen C# mache. Komme aus der C++ Welt und da gibts solche Probleme nicht. :cool:

Danke!!!

Du koenntest die OnPaint Methode in deiner Klasse ueberschreiben:

 protected override void OnPaint(PaintEventArgs e) {

            this.Hide();

            base.OnPaint(e);


        }
Ansonsten wuerde es evtl auch so gehen:

this.WindowState = FormWindowState.Minimized;

this.ShowInTaskbar = false;

Danke ich werde es mal test.

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.