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.

Form1 nicht nur in der Taskleiste anzeigen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe ein Problem.

Ich möchte das man mein Programm minimieren kann und wenn es minimiert ist das man es vom Sytemtray per Klick wieder sichtbar machen kann.

Aber da ist das Problem das Programm wird nur in der Taskleiste sichtbar und man muss extra drauf klicken.

Und das ist umständlich. Ich möchte das mein Programm dann sofort angezeigt wird.

Bitte um hilfe.

Danke

Der Code:


Public Class Form1


    Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize

        If Me.WindowState = FormWindowState.Minimized Then

            Me.Hide()

        End If

    End Sub


    Private Sub NotifyIcon1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown

        Me.Show()

    End Sub


End Class

Versuch mal vor dem Show den WindowState auf Maximized zu setzen.

Keine Ahnung obs funktioniert.


Private Sub NotifyIcon1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDown

        Me.WindowState = FormWindowState.Maximized

        Me.Show()

    End Sub

danke es geht mit der methode. :mod:

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.