I am sure you can extend my sample program to add the features you need.