-1
winform의 배경색을 변경하려고합니다.이 경우, winform의 생성자에서 ColorDialog
을 사용하고 있습니다. 내가 직면하고있는 문제는 설정이 불가능하다는 것입니다. RGB 형식의 색. 여기 ColorDialog를 사용하여 winform의 배경색을 변경하십시오.
public ChangeAsPerApp()
{
InitializeComponent();
ColorDialog cddialog = new ColorDialog();
if (true) {
//How to set the color here either in RGB or
//Some predefined colors or others options available here
//I am trying like this but not able to set color
this.BackColor = cddialog.Color;
}
}
는 RGB 형식으로 색상을 설정합니다 제발 도와주세요 ... 제발 도와주세요 ... 코드입니다. 감사합니다.
'ColorDialog.CustomColors' 속성이 필요하시면? –
@SriramSakthivel 어떻게 RGB 색상을 설정할 수 있습니까? –
색상 데이터는 어떻게 보관합니까? 너 어디서 났니? –