-2
When I click the button, something is written in the Console along with the date, but the time does not update.
Code:
private void button2_Click(object sender, EventArgs e)
{
Console.WriteLine("{0}", data.ToString("HH:mm:ss:fff"));
}
Console: 11:37:55:540 11:37:55:540 11:37:55:540 11:37:55:540
And it won’t even update, you’ll have to build a whole algorithm that does this, it’s not something simple and it’s far from desired. First thing I need to know right now, you know, computers aren’t magic, you put something in, and he does what he wants. You have to build what you need. Anyway it’s already something very strange to mix Winforms with console.
– Maniero
I thought I was gonna update every "millisecond" because, like, he’s not sending five messages at the same time to have the same datetime. And I needed a basis for that algorithm that you mentioned, because I have no idea how to start
– Diego
The problem is this, you want to make the ceiling, the finish, without laying the foundation, lay the brick.
– Maniero
Diego, why did you edit the question? Now the answers have become meaningless.
– ramaral
I reversed the issue because it invalidates the answers given. If you have another question, open a separate question. Recommended reading for better use of the site: [Tour], [Ask] and [Help].
– Bacco
Console with winforms? What is this lambança?
– Raizant