DarkConsultant
Programmer
Hi Again,
I have been searching the Net for a solution to an old chestnut but having tried 4 solutions, all of which did not work, I have arrived at my favourite forum.
In my database app I need to have a form pop up with various bits of info on at varied times, no problem so far BUT I cannot have this form steal focus from the main form which it does at the moment. I have tried the ShowWindow API with absolutely no success and also getting the main form window handle before the info form opens and calling SetActiveWindow from the user32 dll again to no avail (the focus did not switch back to the main form).
I feel I am doing summat fundamentally wrong but cannot fathom it and need help from the kind members of this forum.
TIA
David
DarkConsultant
Live long and prosper \\//
I have been searching the Net for a solution to an old chestnut but having tried 4 solutions, all of which did not work, I have arrived at my favourite forum.
In my database app I need to have a form pop up with various bits of info on at varied times, no problem so far BUT I cannot have this form steal focus from the main form which it does at the moment. I have tried the ShowWindow API with absolutely no success and also getting the main form window handle before the info form opens and calling SetActiveWindow from the user32 dll again to no avail (the focus did not switch back to the main form).
I feel I am doing summat fundamentally wrong but cannot fathom it and need help from the kind members of this forum.
TIA
David
DarkConsultant
Live long and prosper \\//