목록C# Windows Forms WPF (8)
하고재비
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 public void ListDirectory(TreeView treeView1, string path) { treeView1.Nodes.Clear(); treeView2.Nodes.Clear(); var rootDirectoryInfo = new DirectoryInfo(path); treeView1.Nodes.Add(CreateDirectoryNode(rootDirectoryInfo)); } public static TreeNode CreateDirectoryNode(DirectoryInfo directoryInfo) { var directoryNode = new TreeNode(directoryInfo.Name);..

form design 에서 openfiledialog 추가 이벤트 핸들러 작성 1 2 3 4 5 6 7 8 9 private void oPENToolStripMenuItem_Click(object sender, EventArgs e) { string filePath = string.Empty; openFileDialog.InitialDirectory = System.AppDomain.CurrentDomain.BaseDirectory; if(openFileDialog.ShowDialog() == DialogResult.OK) { filePath = openFileDialog.FileName; } } http://colorscripter.com/info#e" target="_blank" style="colo..
user가 ui에서 click을 하지 않아도 click이벤트를 발생시킬수 있다. 1. button1의 클릭 이벤트 처리기를 만든다. 2. 사용할 부분에 해당코드를 입력한다 button1.PerformClick()
string a = "1.959689e-05"; double b = Convert.ToDouble(a).ToString("f12") b result = 0.0000195969