TreeNode Selected BackColor while TreeView not focused

If retaining the SystemColors.Highlight background color is all you wanted, then you don’t need to set the TreeView‘s DrawMode property to TreeViewDrawMode.OwnerDrawAll. Setting it to TreeViewDrawMode.OwnerDrawText should be sufficient, thus you don’t need to worry about drawing the TreeNode‘s corresponding ImageKey. Set the TreeView.DrawMode to TreeViewDrawMode.OwnerDrawText: treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; Set the Treview.HideSelection to false, so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)