Why don’t Focus() and SetForegroundWindow() work?
Once upon a time Microsoft decided these functions would no longer bring things to the foreground on Windows (about the time of Windows ME). Instead, these functions would make the taskbar button of the program or window flash incessantly.
This is all well and good, and I’m sure there were good intentions behind it, but quite frankly, it’s annoying when your app is supposed to come to the foreground and it doesn’t.
Read more
C++: How do I access Form1 from Form2 and vice-versa?
At first glance, this seems like an easy task. All you want to do is access a member variable or control from Form1 on Form2, and do the same from Form2 on Form1. Unfortunately, this is not the easiest thing to do, at least in (Managed) C++.
Read more
Unhandleable Exceptions
There is this wonderful error that sometimes happens when you’re running your .NET app on machines that are not your development machine:
Quote:
Application has generated an exception that could not be handled.