title: vb.net application Cancel button runs into the edge of the form in Windows 7
body: <p>I have an application written in vb.net which works fine in both Windows XP, Vista and 7. However, in Windows Vista and 7, the button layout (specifically the Exit/Cancel button at the bottom right) of all the forms acts weird, as the Exit/Cancel button runs all the way touching the edge/boundary of the form as shown in the pic below.</p>
  
  <p><img src="https://i.stack.imgur.com/VnfAr.jpg" alt="enter image description here"> </p>
  
  <p>This does not happen in Windows XP. Nor does it happen on disabling the Visual Styles in Windows 7, as shown below</p>
  
  <p><img src="https://i.stack.imgur.com/MxFC6.jpg" alt="enter image description here"> </p>
  
  <p>What can be the cause for this issue and is there any way to solve this, so that it looks good for both XP and Windows 7?</p>
  
  <p>EDIT: I'm posting this on behalf of a friend - Abhijit (<a href="https://stackoverflow.com/users/2642426/abhijit-hota">https://stackoverflow.com/users/2642426/abhijit-hota</a>) - who wanted to post this himself but had less than 10 reputation. Apparantly you need to have at least 10 reputation to post a question with an image.</p>