[tt]static void Main[/tt] is a special case, and is treated differently by the compiler. It just is being hosted by the enclosing class. Unless you create an instance of [tt]Program[/tt], your Document instance will never get created.
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first