开发者

AcceptButton doesn't work in case there are TabControl on the form

开发者 https://www.devze.com 2023-04-08 01:53 出处:网络
In the following fo开发者_Go百科rm, I want the AcceptButton to be OK button, but although I set the property to the Form that OK button is the accept button, the actual result is Test button.

In the following fo开发者_Go百科rm, I want the AcceptButton to be OK button, but although I set the property to the Form that OK button is the accept button, the actual result is Test button.

How to fix it?

AcceptButton doesn't work in case there are TabControl on the form


Earlier i got this kind of problem, but got solved easily. It is very much possible that Test button TabIndex is less than that of OK button. Just make it reverse. It should work. At least it worked for me. If not, just check the TabControl TabIndex, it should also be greate than your OK button. Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消