How can I keep a form in front of another form?
I have a main form (frmMain) and I have another form (frmDialog). Pressing a command button on frmMain causes frmDialog to show, but if I switch to another application or click on frmMain, then frmDialog goes behind frmMain and I have to move frmMain so I can access frmDialog again.
Surely there's some simple code to have frmDialog always stay in front of frmMain, no matter what else I am doing?
I have a main form (frmMain) and I have another form (frmDialog). Pressing a command button on frmMain causes frmDialog to show, but if I switch to another application or click on frmMain, then frmDialog goes behind frmMain and I have to move frmMain so I can access frmDialog again.
Surely there's some simple code to have frmDialog always stay in front of frmMain, no matter what else I am doing?