This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18000|Reply: 1

[WinForm] winform loop through the control without contextMenuStrip

[Copy link]
Posted on 12/13/2016 10:20:55 AM | | | |


This is the right-click menu, at the beginning, I used the following code to loop through it, and found that the text value on the interface has been changed, but the value of the right-click menu is still in English...



Finally, I found a passage from netizens, which is as follows:

Iterate through all the controls in the window
foreach (Control c1 in this. Controls)
All controls are in the collection Controls.
But controls like ContextMenuStrip, Timer, etc. are not in this collection


The final solution is as follows:







Previous:python module from Crypto.Cipher import AES
Next:windows traffic monitoring software XDU Meter
Posted on 11/15/2018 10:17:45 PM |


Look for a control of the specified type under a container
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com