0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

cscの作法 その542

Posted at

概要

cscの作法、調べてみた。
練習問題やってみた。

練習問題

iconを使え。

写真

image.png

サンプルコード

using System;
using System.Windows.Forms;
using System.Drawing;

class form1: Form {
	form1() {
		Text = "icon";
		ClientSize = new Size(200, 200);
		Button btn1 = new Button();
		btn1.Location = new Point(50, 50);
		btn1.Text = "test";
		btn1.Click += btn1_Click;
		Controls.AddRange(new Control[] {
			btn1
		});
		this.Icon = new Icon("dolphin.ico");
	}
	void btn1_Click(object sender, System.EventArgs e) {
		MessageBox.Show("Hello World", "こんちは");
	}
	[STAThread]
	public static void Main() {
		Application.Run(new form1());
	}
}



以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?