By default in Windows VB Application the framework is .Net Client Profile
and hence you need to change it by using the following steps
1. Right Click project.
2. Click Properties.
3. In Compile Tab click the Advanced Compile Options button.

4. Then choose .Net Framework 4.0 or 4.5.
