티스토리 뷰

프로그래밍/C#

C# 윈폼 숨기는 방법 코드

뽀로로친구에디 2021. 9. 24. 09:42

C# how to hide winform 소스코드 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HideApp
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Shown(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Thread.Sleep(3000); // 3초
            MessageBox.Show("윈폼 숨기는 방법", "메시지", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}

 

 

동영상 보고 따라하기

https://youtu.be/VROqPHjNUp8

 

- YouTube

 

www.youtube.com

 

댓글
최근에 달린 댓글
글 보관함
«   2024/04   »
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
Total
Today
Yesterday
    뽀로로친구에디
    최근에 올라온 글