public FriendRequest(string email, int recievedNum) { InitializeComponent(); this.email = email; recievedform = recievedNum; string totalString = MySQLFunctions.getTotalAccounts(); int totalAccounts = int.Parse(totalString); //Adds in all accounts for (int i = 1; i <= totalAccounts; i++) { friendsListBox.Items.Add(MySQLFunctions.getName(i)); } }