I sent you a small framework that should get you going in the right direction. Sometimes it helps to start with something that works and play around from there.
HTH
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California