전체보기(302)
-
C#, VB.NET <ListBox> ListBoxItem 각 각 글자색 다르게 하기.listbox fore color 지정하기
ListBoxItem 각 각 글자색 다르게 하기. listbox fore color 지정하기 void listBox1_SetColor(object sender, DrawItemEventArgs e) { try { e.DrawBackground(); Brush myBrush = Brushes.White; int sayi = Convert.ToInt32(((ListBox)sender).Items[e.Index].ToString()); if (sayi > 100) { myBrush = Brushes.Red; } else { myBrush = Brushes.Green; } e.Graphics.DrawString(((ListBox)sender).Items[e.Index].ToString(), e.Font, myB..
2020.02.18 -
Chart 용어정리 (MS Chart 및 기타 차트 모두)
Chart 에 대한 간략 정리
2020.02.17 -
<TreeListView> TreeListView To DataTable
Private Sub TreeListViewToDataTable(dt As DataTable, ByRef nodes As TreeListNodeCollection) For Each node As TreeListNode In nodes If node.Level = 3 Then Dim fullPath As String = node.FullPath Dim strNodes() As String = fullPath.Split("\") Debug.Print(node.Nodes.Item(0).ToString) For Each s As TreeListNode In node.Nodes dt.Rows.Add(strNodes(0), strNodes(1), strNodes(2), strNodes(3), s.ToString, ..
2020.02.13 -
<TreeListView> Column에 Average 값 넣기
Private Sub TreeListView_GetAvg(ByRef Trv As TreeListNodeCollection) Dim avgValue As Double Dim row As DataRow() Dim strQuery As String Dim strDepth0 As String : Dim strDepth1 As String : Dim strDepth2 As String : Dim strDepth3 As String For Each p_node As TreeListNode In Trv strDepth0 = p_node.Text strDepth1 = p_node.Nodes.Item(0).Text strDepth2 = p_node.Nodes.Item(0).Nodes.Item(0).Text strDept..
2020.02.13 -
<TreeListView> Node Drag And Drop
TreeListView Property 변경 AllowDrop = True AllowDefaultDragDrop = True ItemDragEventArgs Private Sub treeView_ItemDarag(sender As Object, e As ItemDragEventArgs) Handles trv_Model.ItemDrag If e.Button = MouseButtons.Left Then DoDragDrop(e.Item, DragDropEffects.Move) End If End Sub ItemDragEventArgs Private Sub Drag_n_Drop_Functions(sender As Object, e As ItemDragEventArgs) Handles trv_Model.ItemD..
2020.02.12 -
가산점심 메뉴판 2020.02.04