I have a program that has a splash screen that loads the main form frmMain. In frmMain's load event, it checks to see if there are some settings that it requires in the registry. If it doesn't find these settings then it loads up the settings form, frmSettings. The problem that I am have is that frmMain is ontop of frmSettings. What I want is frmSettings to be on top of frmMain. I have tried:
Load frmSettings
frmSettings.Show
but this doesn't work, I have tried
frmMain.windowstate = vbminimized
Load frmSettings
frmSettings.Show
This leaves frmSettings up but not focused. I even tried
frmMain.windowstate = vbminimized
Load frmSettings
frmSettings.Show
frmSettings.setFocus
But that did not give the form focus.
Any ideas.... I would like to stay away from api calls if possible.
Troy Williams B.Eng.
fenris@hotmail.com
Load frmSettings
frmSettings.Show
but this doesn't work, I have tried
frmMain.windowstate = vbminimized
Load frmSettings
frmSettings.Show
This leaves frmSettings up but not focused. I even tried
frmMain.windowstate = vbminimized
Load frmSettings
frmSettings.Show
frmSettings.setFocus
But that did not give the form focus.
Any ideas.... I would like to stay away from api calls if possible.
Troy Williams B.Eng.
fenris@hotmail.com