303factory
Registered User.
- Local time
- Today, 05:06
- Joined
- Oct 10, 2008
- Messages
- 136
Hi
On the main form of my software I have about 20 subforms all layered in the same position, and my code switches which form is visible. Not ideal apparently but its what I've got to work with.
This format makes adjusting the position of these subforms an absolute nightmare.
I was wondering
1) is there a way to group them all together so I just have to adjust one position and they all go with it
2) Can I set the position by code? I tried getting them all to call a function on load which sets the window position.
' from subform 'on load'
Call setFormPosition(Me)
Public Sub setFormPosition(TargetForm)
TargetForm.WindowHeight = 15.82
TargetForm.WindowWidth = 27.328
TargetForm.WindowTop = 4.312
TargetForm.WindowLeft = 4.788
End Sub
If I try this it says 'Object does not support this property or method'
Any ideas
Thanks in advance!
303
On the main form of my software I have about 20 subforms all layered in the same position, and my code switches which form is visible. Not ideal apparently but its what I've got to work with.
This format makes adjusting the position of these subforms an absolute nightmare.
I was wondering
1) is there a way to group them all together so I just have to adjust one position and they all go with it
2) Can I set the position by code? I tried getting them all to call a function on load which sets the window position.
' from subform 'on load'
Call setFormPosition(Me)
Public Sub setFormPosition(TargetForm)
TargetForm.WindowHeight = 15.82
TargetForm.WindowWidth = 27.328
TargetForm.WindowTop = 4.312
TargetForm.WindowLeft = 4.788
End Sub
If I try this it says 'Object does not support this property or method'
Any ideas
Thanks in advance!
303