I Think issue was with the border frame thickness of dialog box. I changed the following property in project settings & that worked for me.
Project Properties->Configuration Properties->General->Platefortoolset, set it to
Visual Studio 2013 - Windows XP (v120_xp)
And it worked. Thanks everyone for help