ComboxWithTip.cs 657 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Diagnostics;
  5. using System.Linq;
  6. using System.Text;
  7. namespace UAS_MES_NEW.CustomControl.ComBoxWithFocus
  8. {
  9. public partial class ComboxWithTip : System.Windows.Forms.ComboBox
  10. {
  11. public ComboxWithTip()
  12. {
  13. InitializeComponent();
  14. }
  15. public ComboxWithTip(IContainer container)
  16. {
  17. container.Add(this);
  18. InitializeComponent();
  19. }
  20. private void ComboxWithTip_TextChanged(object sender, EventArgs e)
  21. {
  22. toolTip1.SetToolTip(this, this.Text);
  23. }
  24. }
  25. }