Hello,
Along with the previous replies; Proper Syntax depends on which language you are using, i.e. VB, C++, C#.
So, you need to state what versions of Visual Studios, OS and the programming language. The more details we have
the better we can provide assistance.
Thanks :)