Have you tried checking the index before attempting to access it? In fact, if index is -1 then you can skip the whole method since you are trying to draw an item that isnt in the list so:
private void Browsers_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
{
if(e.Index<0)
return;
//rest of method runs here if index is not out of bounds...
Ryshad
Nearly a Posting Virtuoso
1,307 posts since Aug 2009
Reputation Points: 512
Solved Threads: 246