LabelEx.cs 791 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Windows.Forms;
  5. using System.IO;
  6. using System.Drawing;
  7. using System.Drawing.Drawing2D;
  8. using System.ComponentModel;
  9. namespace LYFZ.ComponentLibrary
  10. {
  11. public class LabelEx : System.Windows.Forms.Label
  12. {
  13. public LabelEx()
  14. {
  15. this.ForeColor = LYFZ.ComponentLibrary.GetUIResources.DefaultTextColor;
  16. this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
  17. // this.Paint += LabelEx_Paint;
  18. }
  19. void LabelEx_Paint(object sender, PaintEventArgs e)
  20. {
  21. this.ForeColor = LYFZ.ComponentLibrary.GetUIResources.DefaultTextColor;
  22. }
  23. }
  24. }