Is there any reason why the following code should crash the current windows form it's operating in? It works if I take the screenshot quickly, but if I leave the windows up for a few seconds my windows form gets a little hour glass in front of it and wont respond to anything, then I ussually have to kill it the program the hard way.
private
{
}
hOld = GetForegroundWindow();
hOld is a windows handle, as you may have guessed...