C#(61)
-
[WinForm] 엑셀 지우기 현재 창만
public void searchExcel() { Process[] AllProcesses = Process.GetProcessesByName("EXCEL"); myHashtable = new Hashtable(); int iCount = 0; foreach (Process ExcelProcess in AllProcesses) { myHashtable.Add(ExcelProcess.Id, iCount); iCount = iCount + 1; } } Hashtable myHashtable; private void KillExcel() { Process[] AllProcesses = Process.GetProcessesByName("EXCEL"); // check to kill the right proces..
2011.10.13 -
[WinForm] 엑셀관련
http://blog.daum.net/gksdy2000/8006560
2011.09.30 -
[Winform] C# excel 연동 예제
http://kr.blog.yahoo.com/season4d/94
2011.09.29 -
[Console] 숫자만 입력받기
public int isNum(string a_str) { int rc = 0; //rc = 0 :문자, 1:정수, 2:실수 for (int i = 0; i = '0' && a_str[i] = 0) rc = 2; return rc; }
2011.09.21 -
[Console] DllImport
DllImport 특성을 이용하면 C# 에서 WinAPI 를 다룰수가 있다. 역시나 예제가 있어야 겠다. // Dll_import.cs using System; using System.Runtime.InteropServices; class MainApp { [ DllImport("user32.dll") ] public static extern int SendMessage(int hWnd, uint Msg, long wParam, long lParam); public const int WM_CLOSE = 0x0010; //닫기 public static void Main() { Console.WriteLine("user32.dll 의 SendMessage 함수를 쓰겠다."); SendMessage(0x000..
2011.09.14 -
[WinForm] MSChart
http://preludeb.egloos.com/4162141
2011.08.29