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.

kontextmenü über die maus

Empfohlene Antworten

Veröffentlicht

hallo,

ich habe leider noch ein weiteres problem. ich kann in meinem programm kein kontextmenü über die maus mit diversen Items öffnen.

das programm teilt auch nich mit ob es überhaupt dort ein fehler gibt. ich hoffe das ihr mir helfen könnt.

private void RolesForm_MouseClick(object sender, MouseEventArgs e)

{

if (e.Button == MouseButtons.Right)

{

contextMenuUserTree.Show(Control.MousePosition);

}

}

private void löschenToolStripMenuItem_Click(object sender, EventArgs e)

{

MessageBox.Show("Löschen");

}

:new

Hallo,

ich kann zwar nur VB.NET aber es dürfte ähnlich sein. Du denkst viel zu Umständlich *G*

Du kannst das ContextMenu direkt an ein Formular hängen (Siehe Eigenschaften). Dann erscheint es immer wenn du auf rechte Maustaste drückst automatisch an dieser Stelle wo die Maus ist.

ein recht herzliches dankeschön.

ich sollte mir mal ne "gehirnwäsche" unterziehen damit ich nicht mehr so kompliziert denke. liegt wahrscheinlich an meine erstausbildung. egal der tipp hat mir sehr geholfen.:uli

den fertigen, funktionsfähigen code werde ich noch nachliefern.

SSchäfer

:new

im nachgang ist hier der code für das kontextmenü für die maus:

private void userTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)

{

if (e.Button == MouseButtons.Right)

{

contextMenuUserTree.Show(Control.MousePosition);

}

}

private void löschenToolStripMenuItem_Click(object sender, EventArgs e)

{

TemplateDelete();

}

private void abbrechenToolStripMenuItem_Click(object sender, EventArgs e)

{

this.Close();

}

besten dank nochmal.

:new

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.