본문 바로가기
  • Seizure But Okay Developer
BackEnd/C#

C# 관련 자료 모음

by Sky_Developer 2024. 7. 29.

 

몇 분마다 메소드 재 실행하는 방법

private void OO_Load(object sender, EventArgs e)
        {
            ...

            timer1.Interval = 60000 * 5; // 5분 간격으로 timer1_Tick 수행
            timer1.Tick += new EventHandler(timer1_Tick);
            timer1.Start();
        }
        
private void timer1_Tick(object sender, EventArgs e)
        {
            if (this.ContainsFocus)
            {
                your_method(null, null);
            }
            else
            {
                return;
            }
        }

 

위 경우 timer1 의 선언 형식은 System.Windows.Forms.Timer 이다

 

xml Document 사용하기

https://stackoverflow.com/questions/34393918/how-can-i-create-a-new-xml-node-in-an-existing-xml-document

 

번외) js에서 xml 불러쓰기

https://unabated.tistory.com/entry/%EC%9B%B9%ED%8E%98%EC%9D%B4%EC%A7%80%EC%97%90%EC%84%9C-xml-%EB%B6%88%EB%9F%AC-%EC%93%B0%EA%B8%B0-new-ActiveXObjectMicrosoftXMLDOM

 

 

 

'BackEnd > C#' 카테고리의 다른 글

C# devexpress 관련 자료 정리  (0) 2024.08.29
C# ASP.NET 관련 자료 정리  (0) 2024.08.29
Devexpress 관련 자료 정리  (0) 2024.07.29
C# asp 메일 보내기 관련 자료  (0) 2024.07.15
C# 관련 자료  (0) 2024.07.04

댓글