This is what I have tried and keep getting an error with regards to a missing using directive. I have converted the code from a previous visual basic in a windows forms appl