Quote Originally Posted by dr223 View Post
Tried this received 2 erroes;

- End of Statement required
- Syntax error

Whats the problem?
-
Cicatrix already gave you an alternate code example to deal with your error.

I think the syntax cicatrix used in his first example only works in VS2008 and higher. Apparently you don't have VS2008 or higher, which you should have indicated in your post (there is a dropdown right next to where you type the title).