public UserListBox() { this.DoubleBuffered = true; this.DrawMode = DrawMode.OwnerDrawVariable; this.HorizontalScrollbar = false; this.ScrollAlwaysVisible = true; this.BackColor = Color.White; this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); this.popup = new UserListToolTip(); }
public void Free() { this.popup.Free(); this.popup.Dispose(); this.popup = null; }