Is there a way to make a UserControl unfocussable?

前端 未结 6 728
迷失自我
迷失自我 2021-01-04 11:43

Is there a way to make a UserControl unfocussable?

EDIT: So SetStyle(ControlStyles.Selectable, false)

is the way to go. But still there is diffe

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 12:36

    In your constructor after InitializeComponent() you need to call SetStyle and set the ControlStyles.Selectable style to false:

    SetStyle(ControlStyles.Selectable, false);
    

提交回复
热议问题