The application for some reason does not want to fold when clicking on the icon in the taskbar. For example, I took VS :
Has anyone encountered such a problem? Tell me, please, how to fix it?
The application for some reason does not want to fold when clicking on the icon in the taskbar. For example, I took VS :
Has anyone encountered such a problem? Tell me, please, how to fix it?
Nothing broke. It was just with FormBorderStyle: None . Add to the form:
const int WS_MINIMIZEBOX = 0x20000; const int CS_DBLCLKS = 0x8; protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.Style |= WS_MINIMIZEBOX; cp.ClassStyle |= CS_DBLCLKS; return cp; } } Original answer: https://stackoverflow.com/a/5180893/7099599
Source: https://ru.stackoverflow.com/questions/673652/
All Articles