Remove button border on tab c# winforms

前端 未结 5 1883
深忆病人
深忆病人 2020-12-21 01:29

I have a button on my form that has flat style applied and uses a background image, I have removed all borders from the button, but when I tab onto the button from another c

5条回答
  •  轮回少年
    2020-12-21 01:53

    I managed to get around this by setting the button TabStop property to False and then using this code on the button click event

    private void sendBackTab()
            {
                System.Windows.Forms.SendKeys.SendWait("+{TAB}");
            }
    

提交回复
热议问题