rmtielman

rmtielman

  • NA
  • 34
  • 0

globals

Feb 16 2004 7:25 AM
I have this function in my globals file: public static void getList(ComboBox cboChoose) { Globals.arr = new ArrayList(); arr.Add(cboChoose.SelectedItem.ToString()); } and the following code behind the button that loads the values in the array each time I click on it: Globals.getList(cboChoose); When I load a form with a listview control, I want to get the values in the array to load in the listview, I wrote the following code onLoad, but I get only one msgbox with 'System.Data.DataRowView'(even if i click on the add button several times only 1 msgbox is dispayed) but the listview remains empty. MessageBox.Show(Globals.arr[0].ToString()); for(int i=0;i

Answers (4)