I have a winform with the minimizeMaximizeClose buttons disabled, but still if someone presses it in the task bar, it will minimize. I want to prevent this from happening.
you can simply remove the minimize button from the window:
add the code below to the private void InitializeComponent() method of the Form class:
this.MinimizeBox = false;