|
-
Oct 1st, 2000, 05:50 PM
#1
Thread Starter
Lively Member
Hi,
Is there a way to force a FORM to stay in
the background of all other FORMS in the
Application?
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Oct 1st, 2000, 05:57 PM
#2
Frenzied Member
yes,
Make a timer on your form
and put this code in it.
Form1.zorder 1
-
Oct 1st, 2000, 06:39 PM
#3
Thread Starter
Lively Member
Form1 loads in the background, but will goes on top
when clicked!
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Oct 1st, 2000, 06:42 PM
#4
Lively Member
Maybe if there is a way to do this in another way.
Use some API to set that Form Window as a parent to the other Forms(and define those other forms as Popup windows?).
Just a thought.
-
Oct 1st, 2000, 07:47 PM
#5
Try
Code:
Option Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Const HWND_BOTTOM = 1
Private Sub Form_Load()
Timer1.Interval = 10
End Sub
Private Sub Timer1_Timer()
SetWindowPos hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
-
Oct 1st, 2000, 09:31 PM
#6
Thread Starter
Lively Member
Hi Aaron,
With your code, the Background FORM stays
in the back and the FORM that appears on
top stays on top...
BUT, the TOP FORM becomes ineffective
because wherever I click on the TOP FORM
(including CONTROLS), the TOP FORM blinks
for 10 milli seconds preventing the trigerring
of any method related to the TOP FORM
(i.e. Untouchable TOP FORM).
Any suggestions?
0101011001000010
01101111011011100110110001101001011011100110010101110010
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|