목록2024/08 (3)
분노의 챔질
Button b = new Button();b.Name = "btnTest";b.TextAlign = ContentAlignment.MiddleLeft;b.Font = new Font("맑은 고딕", 11, FontStyle.Bold);b.Text = "버튼";b.Size = new Size(250, 50);b.Location = new Point(10, 10);b.BringToFront();b.MouseClick += btn_MouseClick;panel3.Controls.Add(b); 버튼으로
private void button5_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Button bt = sender as Button; int x = 0, y = 0; if (bt.Location.X + e.X this.Width) x = this.Width - bt.Width; else x = bt.Location.X + e.X; if (bt.Loca..
RegistryKey reg; //HKEY_CURRENT_USER //쓰기 reg = Registry.CurrentUser.CreateSubKey("SOFTWARE").CreateSubKey("Test"); reg.SetValue("TestValue", "A", RegistryValueKind.String); //읽기 reg = Registry.CurrentUser.CreateSubKey("SOFTWARE").CreateSubKey("RTLS"); string val = reg.GetValue("TestValue", "NONE").ToString(..