开发者

Delete standard icon in windows form

开发者 https://www.devze.com 2022-12-17 06:35 出处:网络
开发者_StackOverflow社区how to just delete that windows form application icon in the left corner without replacing it with another icon?I assume that you\'re using .Net WinForms.

开发者_StackOverflow社区how to just delete that windows form application icon in the left corner without replacing it with another icon?


I assume that you're using .Net WinForms.

Set the form's ShowIcon property to false.


If it is .NET (Winforms) the form should have a ShowIcon property. Set this to false.


in case you're using C++

HWND hWnd;  // = WindowHandle()
::SetWindowLong(hWnd, GWL_EXSTYLE, 
                ::GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_DLGMODALFRAME);
0

精彩评论

暂无评论...
验证码 换一张
取 消