Posts by matheus Lopes • 48 points
3 posts
-
0
votes1
answer39
viewsQ: How to get the right DPI?
I’m trying to get the DPI from the monitor, but it always returns 96, I researched and discovered many people with the same problem. float dx, dy; Graphics g = this.CreateGraphics(); try { dx =…
c#asked matheus Lopes 48 -
2
votes2
answers312
viewsA: C# check "null" or "Nan" or "false" or "0"
You can try to do that string[] ElementAt = { "null", "NaN", "false", "0", "undefined", null }; string erro = null; foreach (var item in ElementAt) { if (erro == item) { MessageBox.Show("Ops, um…
-
1
votes2
answers426
viewsQ: Httpclient how to make a request every 1 second
Can I make a request via Httpclient every 1 second? The server I send requests blocks the request if it is one behind the other with an answer: "Requestblocked" What I wanted was this: I had two…
c#asked matheus Lopes 48