简体   繁体   中英

Modern UI Metro Framework control buttons disappeared

Eeerrm, all of a sudden, my Modern UI Metro Framework control buttons disappeared...have not changed anything in code nor in properties since last run. Now I can't minimize, maximize, close the window.

在此处输入图像描述

Any ideas how to get them back?

On a side note, a different but slightly related question. Why can't I move the form if I grab it where a TableLayoutPanel is used? It only works if I click elsewhere.

Please check your Theme or Style property in your form. In your picture, your form looks black, I assume that you accidentally change the Theme property to Dark .

Same thing happened to me. Now go to references and then add the three respective .dll files of the Metro UI to your form. If it doesn't work, please comment and we will find it together.

I know this is an old question, but I had the same problem when changing the culture of my Modern Metro Form and after that my control buttons (ie maximize, minimize and close) disappeared. I found out that it was because I do Controls.Clear() which removes all controls including ControlBox , MinimizeBox , MaximizeBox .

I found out that the properties called ControlBox , MinimizeBox , MaximizeBox when set to true, appears on the right upper corner of the form as maximize, minimize and close buttons. Anyone coming here in the future might want to check these properties.

Hope it helps ;)

You can drag and drop Controlbox from Toolbox to MetroSetUI forms if initial form not set controlbox automatically

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM