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

2019-08-10 20:05发布

问题:

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.