Yes,
- Use self (self is the main component in the scope. i.e. if you code a procedure in a form, self is the form. If you code a class, self is the class).
- Sender: if you code a event, sender is the object that fire the event. I.E. if you click a button, sender is the button. However, you nned know that sender can be a diferent object, for example you can tie the ButtonClick event to a menu item, then sender is the button or the menu item. Use if Sender is TButton and typecast to (Sender as TButton)...
The Life is Beautiful!
Programmer in
Delphi, VS.NET
MCP