I'm wondering why this code doesn't work on form load.
Everything works except the item being added to the listview. I just got back into C# syntax,
so can you guys explain this a bit please, thanks ahead.
if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true)
{ }
else
{
MessageBox.Show("An error occured in transfering data through the network, please diagnose any"
+ " problems you are having with connecting to the internet.", "Connection Status", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
Environment.Exit(0);
}
ListViewItem lvi = new ListViewItem();
lvi.Text = "Minecraft Steve (Male)";
listView1.Items.Add(lvi);