Hello. There is a program that sends messages to friends, there are also several accounts and this is the code that sends 5 messages to id, which are loaded into the textBox from the file:
void Go() { var index = 0; api.Authorize(4562540, логин, пароль, Settings.All); foreach (var login in textBox6.Lines) { try { var id = int.Parse(login); textBox10.Text = api.Messages.Send(id, false, textBox12.Text).ToString(); label5.Text = "Отправлено: " + index.ToString(); System.Threading.Thread.Sleep(10000); if (index++ == 4) { break; } } catch (Exception) { } } } The question is how to break; after break; automatically substitute a new username and password in the textbox to start the new account again? Separately created a file with logins, separately with passwords. Login positions = password positions in files.