|
-
Nov 14th, 2000, 08:06 PM
#1
Thread Starter
Hyperactive Member
hi,
how can I set the current active form (or Mdiform as a whole) out of focus in run time?
(i.e to make the blue window bar gray - window out of focus)
cheers!
Abdul
-
Nov 14th, 2000, 10:42 PM
#2
Use the FlashWindow api function.
Code:
Declare Function FlashWindow& Lib "user32" (ByVal hwnd As Long, _
ByVal bInvert As Long)
Public Const Flash = 0 'Focus
Public Const NoFlash = 1 'No Focus
Private Sub Form_Activate()
FlashWindow Me.hWnd, NoFlash
End Sub
-
Nov 15th, 2000, 03:27 AM
#3
Thread Starter
Hyperactive Member
1+1=3
make life simple, use a calculator!
-
Nov 15th, 2000, 07:12 AM
#4
If you want to be able to put the Constants in a form, either change them to Const (which is Private by default) or Private Const rather than Public Const.
-
Nov 15th, 2000, 07:36 AM
#5
Thread Starter
Hyperactive Member
re:
yup
1+1=3
make life simple, use a calculator!
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
|