I am using the Microsoft Web Browser COM in a winform, but it's Name
property is grayed out and I can not change it. The default name is axWebBrowser1
and to be honest it doesn't looks like a good name! Any idea how to change this name?
If you look in your Designer.cs File you will see:
private AxSHDocVw.AxWebBrowser axWebBrowser1;
You can change the name to what you want, I would make sure you use the rename option so that all references are changed.
private AxSHDocVw.AxWebBrowser WebBrowser;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.