using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace sharpreleaser { public partial class CommandsListBox : ListBox { public CommandsListBox() { InitializeComponent(); } protected override void OnDrawItem(System.Windows.Forms.DrawItemEventArgs e) { e.DrawBackground(); e.DrawFocusRectangle(); Rectangle bounds = e.Bounds; base.OnDrawItem(e); } } }