简体   繁体   中英

Set Form.AcceptButton to none/no buttons

i was able to set my forms accept button with this.AcceptButton = button1 , but how do i disable accept button so there won't be any Accept Buttons?

You can set this.AcceptButton proprerty to null.

this.AcceptButton = null;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM