string msg = string.Empty; for(int i=0;i<4;i++) { msg+=(string)listbox1.Items[i] + "\n"; } MessageBox.Show("The first four items :\n" + msg);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)