코더아니야개발자야

  • 홈
  • 태그
  • 방명록

forms 2

017_Forms

Form1 과 Form2를 생성해 Form1의 button text를 "form2생성"으로 변경 button를 클릭해 button1_Click 함수 생성 public Form1() { InitializeComponent(); this.ClientSize = new System.Drawing.Size(500, 500); button1.Location = new System.Drawing.Point( 500 / 2-button1.Width/2,500/2-button1.Height/2); } private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); this.AddOwnedForm(f2); //f2는 form1의 자식 f2...

C# 2022.03.30

016_HelloWorld!(Forms)

가장 기초적인 버튼을 누르면 HelloWorld!를 출력하는 폼을 만들어보자. 도구상자에서 button 을 폼 위에 올려주고 botton의 text를 속성창에서 Click!으로 변경 한번더 button을 폼위에 올려 text를 Exit로 변경 폼을 누르고 F7를 눌러 Form1.cs의 코드를 추가해보자. ( + 버튼을 더블클릭해 코드블럭을 생성해보자) public partial class Form1 : Form //Form을 상속받는 Form1 { bool flag = false; public Form1() //객체 생성시 생성자 생성 { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) //버튼 클릭 이벤트 호..

C# 2022.03.29
1
더보기
프로필사진

What time is it now?
00/00/00
00:00

컴퓨터랑 일하는 건 엄청 멋있다.

누구랑 싸우지도 않고, 모든 것을 대신 기억해주고,

내 맥주를 뺏어 마시지도 않는다. - Paul Leary

  • 분류 전체보기 (76)
    • 대학원 (0)
      • Paper Review (0)
    • C# (51)
    • 리눅스 (11)
    • App Inventor (12)
    • BAEKJOON,백준 (2)

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바