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.
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)
{
}
}
}
Please also mark the comments that contributed to the solution of the article
Content-Key: 53497231455
Url: https://administrator.de/contentid/53497231455
Printed on: April 27, 2024 at 18:04 o'clock
1 Comment