'목록하단 광고 치환자(withSeok)
728x90

따라한 강의 : youtu.be/Xer0j5U24Q0

[C# 초보 강좌] 예제로 배우는 C# 05

private void bttnN1_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 1); }
private void bttnN2_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 2); }
private void bttn3_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 3); }
private void bttn4_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 4); }
private void bttn5_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 5); }
private void bttn6_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 6); }
private void bttn7_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 7); }
private void bttn8_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 8); }
private void bttn9_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 9); }
private void bttn0_Click(object sender, EventArgs e)
{lblNumscreen.Text = Convert.ToString(Convert.ToInt32(lblNumscreen.Text) * 10 + 0); }

WF_Cal_1.exe
0.01MB

SetNum 함수를 만들어 사용한 다른 방법

 

728x90

+ Recent posts