Override Default Button Selection behaviour

  • Thread starter Thread starter ian.mcewan
  • Start date Start date
I

ian.mcewan

Hi,

I have a number of buttons on a form. I do not want any
button to be selected by default. Seems like .Net selects
the button which has the lowest tabindex ordinal by
default. Any way around this?

THx.
 
Hi Ian,

A Form has an AcceptButton property that specifies which button is
autoselected when you hit ENTER.
TabIndex is irrelevant. Ensure that AcceptButton isn't set.
 
Back
Top