croondevil
Registered User.
- Local time
- Today, 04:56
- Joined
- May 30, 2009
- Messages
- 14
Hi all
I am working on a db.. On it i have a main (popout) form.
When the user clicks on a button on the main form a new form will popout.The new form is named as "frmstartmenu".I applied a translucent form effect on "frmstartmenu" as shown in DomDXecutioners sample db
http://www.access-programmers.co.uk/forums/showthread.php?t=131016
And when the user clicks on a button in the "frmstartmenu" a new form will popout.But the problem is that the new form pops out with a runtime error( runtime error 5). And he following part is highlited:-
Public Sub UIProcessFadeIn(UIForm As Form, Optional EndOpacity As Integer = 255)
'// loop counter
Dim i As Integer
For i = 1 To EndOpacity
Call SetTranslucent(UIForm.hWnd, i)
'// this is required for proper fade effect
'// otherwise you'll just jump to the transparency immediately
'// you may want to use another method to wait
DoEvents
Next i
End Sub
This new form does not have translucent effect applied on it.Hope thi makes sense.
And sorry for my bad english
I am working on a db.. On it i have a main (popout) form.
When the user clicks on a button on the main form a new form will popout.The new form is named as "frmstartmenu".I applied a translucent form effect on "frmstartmenu" as shown in DomDXecutioners sample db
http://www.access-programmers.co.uk/forums/showthread.php?t=131016
And when the user clicks on a button in the "frmstartmenu" a new form will popout.But the problem is that the new form pops out with a runtime error( runtime error 5). And he following part is highlited:-
Public Sub UIProcessFadeIn(UIForm As Form, Optional EndOpacity As Integer = 255)
'// loop counter
Dim i As Integer
For i = 1 To EndOpacity
Call SetTranslucent(UIForm.hWnd, i)
'// this is required for proper fade effect
'// otherwise you'll just jump to the transparency immediately
'// you may want to use another method to wait
DoEvents
Next i
End Sub
This new form does not have translucent effect applied on it.Hope thi makes sense.
And sorry for my bad english