This won't work if you have components inside of components (nesting of components) as will occur in most moderate to complex GUI's. To solve this, you need to create a method to disable components recursively. Hang on a sec and I'll show you...