form_load
이벤트에서 다음 코드를 사용하여 Form.BackgroundColor
을 변경하려고하지만 오류가 발생합니다.C에서 양식 배경색을 변경하는 방법
내가컨트롤은 투명한 배경색을 지원하지 않습니다. 여기
private void Form1_Load(object sender, EventArgs e)
{
string sColor = "#ACE1AF";// Hex value of any color
Int32 iColorInt = Convert.ToInt32(sColor.Substring(1), 16);
Color curveColor = System.Drawing.Color.FromArgb(iColorInt);
this.BackColor = curveColor;
}
내가 같은 질문 (
Why am I getting "Control does not support transparent background colors"?)을 발견 ... 노력하고 있지만,이 때문에
Color
클래스에 기본 값을 사용하고 내 요구 사항을 충족되지 않을 것입니다.
내가 http://stackoverflow.com/questions/9358500/winforms-making-a-control-transparent 같은 질문을 찾을 – isxaker
내가 폼 transprent을 만들려고 노력하고 있지 않다, 나는 16 진수 값 –
에서만 색상을 변경하려면 ColorTranslator.FromHtml ("# 00FEF2D4"); – isxaker