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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top