[C#]MSI 자동배포 생성 C# 2008. 10. 5. 22:04

1) 프로젝트 작성

2) AP폴더 내에 파일 삽입

3) 빌드

자동배포 MSI와 Setup파일이 자동 생성된다

[C#]다운로드 Method C# 2008. 9. 30. 18:05

public void Download(string downURL) {  
   System.Net.WebClient request = new System.Net.WebClient();
   byte[] newFileData = request.DownloadData(downURL);
   string fileString = System.Text.Encoding.UTF8.GetString(newFileData);
   Response.Write(fileString);
}

-_-a 웹 클라이언트를 통한.. 파일 데이터 다운로드라 해야하나.. -_-a

뭐 그런 취지로 만든 것이답.

현재 윈도우 해상도 얻기
Size Bounds = Screen.PrimaryScreen.Bounds.Size;
MessageBox.Show(Bounds.ToString());
(결과) Width=2560, Height=1600

작업 표시줄 제외한 윈도우 영역 크기

Size WorkingArea = Screen.PrimaryScreen.WorkingArea.Size;
MessageBox.Show(WorkingArea.ToString());
(결과) Width=2560, Height=1570

※ 결과 : 2560*1600 해상도에서 테스트 한 결과