Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
// Recursive access of controls of a root control // Source: https://social.msdn.microsoft.com/Forums/vstudio/en-US/04d08bfb-2214-4636-b12d-b98f33caa4c4/recursive-search-of-all-controls-on-a-form private void ProcessAllControls(Control rootControl, Action
action) { foreach (Control childControl in rootControl.Controls) { ProcessAllControls(childControl, action); action(childControl); } } // Use as: ProcessAllControls(this, ctrl => ctrl.Visible = false);
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)