
10-16-2005, 03:26 AM
|
|
Regular
|
|
Join Date: Oct 2004
Posts: 59
|
|
Flicker issue
|
This is a fairly hard issue that I’ve been working on, on and off all day today and I finally giving in and posting here about it. The code I’m working with is:
Code:
Private Sub cmdBack_Click()
'Show frmMaintenance
frmMaintenance.Show
'Set frmMaintenance window position so they're the same when you press back
Dim intTop As Integer, intLeft As Integer
''Get current form window position
intTop = Me.Top
intLeft = Me.Left
''Set frmMaintenance window position
frmMaintenance.Top = intTop
frmMaintenance.Left = intLeft
'Close current form
Unload Me
End Sub
As you can see what this code is supposed to do is set the form it’s going back too’s position to the same as the current forms window position but the problem is if the form has been moved from its start up position, when I push the back button it flickers while it’s moving the form. Does anyone know of a way to prevent the flicker and or set the window position before it actually switches to it?
|
|