Dialog default

  • Thread starter Thread starter Ray Valenti
  • Start date Start date
R

Ray Valenti

How do I set the default button in a dialog box to display with the
emphasized border? The DialogResult property is set to "OK." but it looks
like any other command button.

Ray
 
Ray,
make sure you set the "AcceptButton" property of the form to your button
you want as the defalut.

HTH
 
* "Ray Valenti said:
How do I set the default button in a dialog box to display with the
emphasized border? The DialogResult property is set to "OK." but it looks
like any other command button.

Assign the button to the form's 'AcceptButton' property.
 
It's simple when you know where to look.

Thanks,
Ray


Lateralus said:
Ray,
make sure you set the "AcceptButton" property of the form to your button
you want as the defalut.

HTH

--
Lateralus [MCAD.Net]


Ray Valenti said:
How do I set the default button in a dialog box to display with the
emphasized border? The DialogResult property is set to "OK." but it looks
like any other command button.

Ray
 
Back
Top