본문 바로가기

C#20

c# 수업중 내용 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using Systehttp://m.Threading.Tasks; using Systehttp://m.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { int y = 40; int gak = 10; List listboxdata = new List() { "홍길동", "박.. 2024. 2. 19.
원 처럼 움직이기 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using Systehttp://m.Threading.Tasks; using Systehttp://m.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { int y = 40; int gak = 10; public Form1() { InitializeComponent(); t.. 2024. 2. 19.
라벨 이용하기 namespace WinFormsApp100 { public partial class Form1 : Form { int y = 10; class Car { public String Name { get; set; } } List list = new List(); public Form1() { InitializeComponent(); //MakeLabel(10, 90, "추가됨"); Car car1 = new Car() { Name = "마이자동차" }; Car car2 = new Car() { Name = "마이2자동차" }; list.Add(car1); list.Add(car2); foreach (Car car in list) { Console.WriteLine(car); MakeLabel(10, y, .. 2024. 2. 16.
C# 콘솔 콘솔 애플리케이션을 사용해본다. namespace WinFormsApp3 { public partial class Form1 : Form { private Button button1; private Button button2; public Form1() { InitializeComponent(); button1 = new Button(); // // button1 // button1.Location = new Point(440, 122); button1.Name = "button1"; button1.Size = new Size(162, 86); button1.TabIndex = 0; button1.Text = "button1"; button1.UseVisualStyleBackColor = true; bu.. 2024. 2. 13.