hi, But your code shows that the line is commented... for your ease let me point out the line with repeated "*"s... // Handle the MeasureItem event for an owner-drawn ListBox. private void ListBox1_MeasureItem(object sender, MeasureItemEventArgs e) { // Cast the sender object back to ListBox type. ListBox theListBox = (ListBox) sender; // Get the string contained in each item. string itemString = (string) theListBox.Items[e.Index]; // Split the string at the " . " character. string[] resultStrings = itemString.Split('.'); // If the string contains more than one period, increase the // height by ten pixels; otherwise, increase the height by // five pixels. if (resultStrings.Length>2) { e.ItemHeight += 10; /*********** you have commented here**********************/ //theListBox.HorizontalScrollbar = true ; /********************************************************/ } else { e.ItemHeight += 5; } e.ItemWidth +=100000 ; } and if it has still not worked... then try declaring the same when you are instantiating or rather creating the listbox... regards, Aryadip. Cheers !! and have a Funky day !!