使用系统颜色时出现问题

使用系统颜色时出现问题

本文介绍了使用系统颜色时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想使用用户配色方案来设置表单的颜色。 我现在必须使用。 System.Drawing.SystemColors,但其颜色是其他应用程序中使用的表单背景的颜色。 最后我想做的一切 form1.backcolor = system.whatever.color 这可能,怎么样? 解决方案 ''SystemColors.Control''。 - Herfried K. Wagner MVP·VB Classic,VB.NET < http://www.mvps.org/dotnet> 哦,我明白了。您想要应用视觉样式。在Framework 1.1中,您可以使用调用System.Windows.Forms.Application.EnableVisualStyle。在Framework 1.0 中,您必须在application.config文件中添加一些行。搜索此群组 代表视觉风格你会找到一些提示。 - Armin System.Drawing.SystemColors.Control是正常的表格背景。 System.Drawing.SystemColors.Window是文本框内的白色位。 Hi,I want to use the user color scheme to set the color of my forms.I now I have to use the. System.Drawing.SystemColors, but which color is thecolor of a form background as used in other applications.In the end all I want to do isform1.backcolor = system.whatever.colorIs this possible, and how? 解决方案''SystemColors.Control''.--Herfried K. WagnerMVP · VB Classic, VB.NET<http://www.mvps.org/dotnet>Oh, I see. You want to apply the "visual styles". In Framework 1.1 you cancall System.Windows.Forms.Application.EnableVisualStyle s. In Framework 1.0you have to add some lines to the application.config file. Search this groupfor "visual styles" and you''ll find some hints.--ArminSystem.Drawing.SystemColors.Control is normal Form background.System.Drawing.SystemColors.Window is the white bit inside a text box. 这篇关于使用系统颜色时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 22:09