In C# WinForm app, How to paint/draw child form close button

半城伤御伤魂 提交于 2019-12-11 08:17:51

问题


How to paint/draw a child form's close button (not MDI Form close button).

MDI form's close button cand be draw by System.Windows.Forms.VisualStyles.VisualStyleElement.Window.CloseButton.Normal but how to draw child form's close button as seen in the picture.

I have got a thing but it is not same as in image displayed. System.Windows.Forms.VisualStyles.VisualStyleElement.Window.MdiCloseButton.Normal

MdiCloseButton will provide the same thing.

来源:https://stackoverflow.com/questions/14134718/in-c-sharp-winform-app-how-to-paint-draw-child-form-close-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!