본문 바로가기

분류 전체보기

Gmail을 Outlook2007에 연결하기 이메일 계정 탭 사용자 이름: (선택사항) 이메일 주소: ('@gmail.com'을 포함한 Gmail 주소) 받는 메일 서버(POP3): pop.gmail.com 보내는 메일 서버(SMTP): smtp.gmail.com 사용자 이름: ('@gmail.com'을 포함한 Gmail 주소) 비밀번호: (자신의 Gmail 비밀번호) 비밀번호 기억: (선택사항) 보안암호 인증으로 로그인: 사용 안함 추가 설정: 보내는 메일 서버 탭 보내는 메일 서버(SMTP) 인증 필요: 사용 받는 메일 서버와 동일한 설정 사용: 선택 추가 설정: 고급 탭 받는 메일 서버(POP3): 995 보안 연결(SSL) 필요 사용 보내는 메일 서버(SMTP): 587 다음 암호화된 연결 유형 사용 TLS 서버 시간제한 (1분 이상이어야 ..
Thread 사용법 public static void Main(string[] args) { // Thread 에 객체 생성 Thread MyThread = new Thread(new ThreadStart(MyCallbackFunction)); MyThread.Start(); } public static void MyCallbackFunction() { while(true) { System.Console.WriteLine("Thread Test"); } } NotSupportedException 에러가 나타난다면 public static void Main(string[] args) { // Thread 에 객체 생성 Thread MyThread = new Thread(new ThreadStart(MyCallbackFunct..
Resources에 있는 그림 삽입 PictureBox1.Image = global::Form1.Properties.Resources._1;
DrawString 가운데 정렬 String drawString = "텍스트를 넣어보자" Font font = new Font("Tahoma", 12, FontStyle.Bold, GraphicsUnit.Point)) Rectangle drawRect = new Rectangle(10, 10, 130, 140); StringFormat stringFormat = new StringFormat(); stringFormat.Alignment = StringAlignment.Center; stringFormat.LineAlignment = StringAlignment.Center; e.Graphics.DrawString(drawString, font, drawB, drawRect, stringFormat);
C# 딜레이 //3초간 딜레이 System.Threading.Thread.Sleep(3000); //페인트 외에서 그래픽 사용 Graphics G = this.CreateGraphics(); //스레드 문제 발생시 public Form1() { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; } //label 배경 투명 public Form1() { InitializeComponent(); this.pictureBox1.Controls.Add(this.label1); }