Hi all
Let's say I have frmMain and frmAddItem. There is a button on frmMain to show frmAddItem, using:
A previous discussion on this forum suggested this makes frmAddItem modal, and so the project won't use another form until that one is closed.
If frmAddItem is showing modally, and I Alt-Tab to another program and eventually Alt-Tab back, it's showing frmMain and frmAddItem is sitting behind it, so I have to move frmMain to the side and click on frmAddItem to access it. I would like frmAddItem to always be in front, even when I Alt-Tab away and come back.
On occasions where I forget I have already got frmAddItem open and I click the button to open it again, of course it says:
with an Ok button. Click the Ok button and the program closes.
So I'd greatly appreciate it if someone could help, and let me know how I can keep frmAddItem in front of frmMain all the time until I reach frmAddItem.Hide
Let's say I have frmMain and frmAddItem. There is a button on frmMain to show frmAddItem, using:
Code:
frmAddItem.Show 1, Me
If frmAddItem is showing modally, and I Alt-Tab to another program and eventually Alt-Tab back, it's showing frmMain and frmAddItem is sitting behind it, so I have to move frmMain to the side and click on frmAddItem to access it. I would like frmAddItem to always be in front, even when I Alt-Tab away and come back.
On occasions where I forget I have already got frmAddItem open and I click the button to open it again, of course it says:
Code:
Run-time error '400':
Form already displayed; can't show modally
So I'd greatly appreciate it if someone could help, and let me know how I can keep frmAddItem in front of frmMain all the time until I reach frmAddItem.Hide