Skip to content

Instantly share code, notes, and snippets.

@milk19873
Last active October 8, 2016 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milk19873/e3e16cb426eee144c2ae6d243a9719df to your computer and use it in GitHub Desktop.
Save milk19873/e3e16cb426eee144c2ae6d243a9719df to your computer and use it in GitHub Desktop.
第5回プログラミング講座-Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HelloWorld
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//「こんにちは」ボタンをクリックする動作
this.textBox1.Text = "HelloWorld";
}
private void button2_Click(object sender, EventArgs e)
{
//「さようなら」ボタンをクリックする動作
this.textBox1.Text = "GoodByeWorld";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment