Hi there,

I started looking the gui samples for pyhon or c# and I am just wondering when we Add controls to the application we use the this.Controls.Add() but actually it comes from the Control.ControlCollection Class. Why can we use simple “Controls” and why we do not need to put the full name of Control.ControlCollection.Add() ?

(Nathan 'jesterKing' Letwory) #2

The Control.ControlCollection is the class, Controls is an instance if that. You call methods on instances of classes, not on classes.