internet2107
Goto Top

Visual Studio, WebView2 - Context Menu

Hallo zusammen.

Ich habe folgende Frage. Ich kenne mich mit Visual Studio leider noch nicht so gut aus, würde aber gerne in einem WebView 2 das Context Menu anpassen, so dass nur noch "refresh", "print" und "Web capture" enthalten sind. Alles andere soll raus.

Wir muss ich den Code anpassen, dass es nur noch die 3 Optionen enthält, wenn man das Context Menu aufruft?

Siehe auch Screenshot von Visual Studio.

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void webView21_Click(object sender, EventArgs e)
        {
        }

        private void webView21_MouseEnter(object sender, EventArgs e)
        {
        }

        private void webView21_ContextMenuStripChanged(object sender, EventArgs e)
        {
            
        }
    }

}
aufnahme1

Content-Key: 53497231455

Url: https://administrator.de/contentid/53497231455

Printed on: April 27, 2024 at 17:04 o'clock

Mitglied: 11078840001
11078840001 Feb 22, 2024 updated at 09:21:50 (UTC)
Goto Top