如何在Windows应用程序中应用自定义颜色 [英] how to apply custom color in windows application

查看:279
本文介绍了如何在Windows应用程序中应用自定义颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows应用程序中将自定义颜色应用为背景色.如何应用此方法.它们将bgcolor作为属性,但它们的颜色有限

i need to apply custom color to form as background color in windows application. how can apply this.they given bgcolor as properties but they have limited colors

推荐答案

这里是一个链接tat,可让您在表格上设置字母颜色:
http://www.dotnetperls.com/colordialog [
Here is a link tat lets you set an arbetrary color on your form:
http://www.dotnetperls.com/colordialog[^]

To set the color in RBG you simply type:
this.backcolor = Color.FromArgb(155, 155, 155);


设置表单属性
Backcolor =从属性中选择颜色;
或喜欢
set form property
Backcolor=select color from property;
OR Like
BackColor=255, 192, 128



在Window应用程序窗体中,具有名为 BackColor 的属性来设置其值.
BackColor提供选择的颜色名称或颜色代码或自定义.
您可以选择作为您的收藏夹颜色..

谢谢.



In Window application Form has Property named BackColor set it''s Values.
BackColor Provide select color name or color code or custom .
you can select as your favorites Color..

Thank You.


尝试使用代码中的Color.FromArgb方法.
在属性"中,选择"下拉菜单中具有不同的选项卡.
Try the Color.FromArgb Method from Code.
From Properties, you have different Tabs in the Selection Drop Down Menu.


这篇关于如何在Windows应用程序中应用自定义颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆