Кнопка остановки C# от получения фокуса при нажатииC#

Место общения программистов C#
Гость
Кнопка остановки C# от получения фокуса при нажатии

Сообщение Гость »


I have several buttons that when clicked I don't want them to get focus nor do I want the space bar to 'press' them again.

I want the same functionality as the buttons in windows calculator.

Googled and searched stack everything seems to be about forms eg. Make a form not focusable in C#

I know I'm supposed to rewrite WndProc but not exactly sure how to proceed as to what messages I should catch/ignore etc. As far as I got:

Код: Выделить всё

protected override void WndProc(ref Message m)     {         base.WndProc(ref m);     } 


Источник: https://stackoverflow.com/questions/674 ... s-on-click

Вернуться в «C#»