How do I update controls on my UI thread from the Asyncronous Delegate? I understand it’s not safe to just try to update it directly from the asynchronous thread, but I need to figure out how to update it somehow. Specifically I need to increment a ProgressBar and update text in a Label.
Thanks,
Michael C.
Response:
My name is Tyrone Hernandez. I grew up on the streets, so I’m familiar with this kind of shiznit. I am down with this, and I’m going to keep it real by top-posting.
In my hood, I have a homie named Shaniqua and some times she calls me on the phone in an asynchronous fashion. Now I’m hip to her jive, so I don’t wanna just hang up. If I feels like talkin to Shaniqua, I talk to her. If not, I use my power of “Control” to check “IsInvokeRequired” and if it is, I call Control.BeginInvoke() to upgrade my progress bar.
Well, I’d be likin’ to talk more, but my crack dealer is here so I’m going to call some of his methods. Peace out!
I received an actual bona fide snail mail chain letter today. It even came with 5 cents taped to the top of it.
I have no idea who sent it to me. I didn’t recognize any of the 5 names printed in the letter. I imagine that it was some someone, now quite literally, 5 cents short of a dollar. Probably someone I sold something to on eBay. I doubt anyone I know in real life would be foolish enough to send me such a thing.
After marveling in bewilderment at the utter hilarity of the idea for a moment, I pocketing the 5 cents and tossed the letter. At least I can say I did make some money off the pyramid scheme. Perhaps not the millions promised. But every little bit helps.
One of the funniest things I’ve found yet on Wikipedia is the article entitled “Friends of Gays should not be allowed to edit articles“. Anyone who has ever run a blog, Wiki, or other user editable website will find much of what’s said particularly apt.
David Hewlett plays my favorite character, Rodney McKay, on Stargate Atlantis. It seems he’s a geek in real life as well as on the show. He’s made a little indie movie and used his computer knowledge to make a little website to promote it. And in doing so managed to generate enough buzz with his existing fan base to get the movie picked up by MGM and a TV show spun off in the process. If the following trailer is anything to go by, this could be quite good.
RT @benschwarz: Hiring? Don't write about "opportunity", ur company being "leading", "fun" or "creative". If I don't know that, you're wrong 4 hours ago