How to use Console with a Winform App ?
- by asksuperuser
Let's say I have some code inside a Winform. I'd also like to output to Console like this:
Reader = command.ExecuteReader();
while (Reader.Read())
{
string thisrow = "";
for (int i = 0; i < Reader.FieldCount; i++)
thisrow += Reader.GetValue(i).ToString() + ",";
Console.WriteLine(thisrow);
}
connection.Close();
It doesn't crash but I can't see any console. Why ?