I need need it to update my ListView before continueing
if (chars.Length > 0)
{
string log = string.Format("{0}:{1}", acc.Username, acc.Password);
UpdateListView();
sWorking += log + "\r\n";
foreach (IJJIAccount.GunZCharacter gc in chars)
{
log = string.Format("\t{0} - Level {1}", gc.CharName, gc.Level);
sWorking += log + "\r\n";
}
}
UpdateListView()
void UpdateListView()
{
ListViewItem Lvi = new ListViewItem(acc.Username);
ListViewItem.ListViewSubItem LviPassword = new ListViewItem.ListViewSubItem(Lvi, acc.Password);
Lvi.SubItems.Add(LviPassword);
IDC_ListView.Items.Add(Lvi);
}
Atm it updates it once the thread has finished its business but i need the check to either run on another thread or the update to finish before it continues