TreeViewEnhanced.cs 418 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. namespace PaintDotNet.CustomControl
  8. {
  9. public class TreeViewEnhanced : TreeView
  10. {
  11. protected override void WndProc(ref Message m)
  12. {
  13. if (m.Msg == 0x203) { m.Result = IntPtr.Zero; }
  14. else base.WndProc(ref m);
  15. }
  16. }
  17. }