/*★ Form にキャプションと色を設定する 前田 稔 ★*/
using System;
using System.Drawing;
using System.Windows.Forms;
public class MyForm : Form
{
public MyForm()
{
Text = "Window のキャプションです";
BackColor = SystemColors.AppWorkspace;
//BackColor = SystemColors.ControlLight;
Width = 512;
Height = 256;
}
}
class form01
{
public static void Main()
{
MyForm mf = new MyForm();
Application.Run(mf);
}
}
|
>CD C:\Data\C#\BAT\win >CSC WinColor.cs >WinColor.exe |
![]()