ZMControl.cs 861 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace IntelligentControlForsx.MyControls.zm
  11. {
  12. public partial class ZMControl : UserControl
  13. {
  14. public ZMControl()
  15. {
  16. InitializeComponent();
  17. //SetStyle(ControlStyles.UserPaint, true);
  18. //SetStyle(ControlStyles.AllPaintingInWmPaint, true);
  19. //SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲  
  20. //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
  21. //this.UpdateStyles();
  22. }
  23. public virtual void DeActive()
  24. {
  25. }
  26. public virtual void Active()
  27. {
  28. }
  29. }
  30. }