The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
that code block was a common trick from VB6 days -- there's code under a button somewhere and that has to run for some time, but async code is hard, so we just "block" logical progression by waiting for completion (in this case, 5 seconds), but we have to `Application.DoEvents()` now and then or the app becomes unresponsive.
It's not an ideal situation -- `Thread.Sleep()` could rather be replaced by something like `Test if mail sent`, but that's why it's there.
Ummm, Thread.Sleep() holds the UI & Application.DoEvents releases the UI ? (I have used it to update the Form while waiting for some stuff to happen) most of the time unless you are very luck if DoEvents gets through a code review!..
I just spent over an hour fixing some custom DateTime TextBox that only worked if the system clock was in a specific Dutch format (both CurrentCulture and CurrentUICulture had to match)
Yet another reason why we UI developers get the big money .
Sander Rossel wrote:
I prefer having my OS in English because it's more Googleable
My employer insists on providing our UI's in English, French, Italian, German, Spanish, Japanese, Chinese Simplified, and occasionally Polish and Russian. Despite that, we find most of our customers running the UI in English. I think you've helped me figure out why.
Probably about 7 years ago I was talking with our IT guy about how far phones have come and how cool it will be when we can use our phones as our main computer. I even discussed it on the lounge and had some say it was the dumbest idea ever and would never fly. Glad to see the rest of the world didn't feel that way.
I'm a bit ashamed that I lost track of what was going on with the desktop mode of Android phones. I notice that you can run Microsoft Office on Samsung's in DeX mode so we're pretty much there.
Now if only Visual Studio Code would run on Android. (StackBlitz is almost there...)
I've had the S8+ for a while now, and I'm still learning all it can do. I suspect I've only touched the surface, since I'm scared to open most of the garbage that came pre-installed from Verizon. I even used it elk hunting last year with an app called onX Hunt, and it tracked my every movement perfectly, providing topo information, and ownership of the land I was walking through. I can't verify it, but I think its accuracy is probably every bit as good as my Garmin eTrex GPS thingy. A very impressive device!
Harrumph. My first smartphone was a Samsung Galaxy S5, my current work phone is an S5, and my personal phone is an S9+. All of them have been robust workhorse devices. They've survived traveling in my gym bag, my cycling jersey, and my belt pack while marathon training, all without the zip-lock bag that everyone else seems to think is required.
They've given me plenty of bang for my paltry few bucks.