|
-
Sep 24th, 2002, 05:11 PM
#1
Thread Starter
Addicted Member
Quick help DESPERATELY needed. PLEASE???
I'm not even sure I can adaquately explain my problem!!!
Here goes...
I have several forms displayed. Each is different and not MDI.
At various times, I need to scroll or move (or other stuff) picture boxes or frames around on these DIFFERENT forms.
Is there any way I can put the functions to carry out these effects for me in a module and just reference the form I want the effect to take place on?
i.e. to Call a sub like this...
Code:
call MoveMainFrame("Form1","LEFT",True)
which would, as per this example, move the 'Main' FRAME on Form1 to the left, keeping it visible.
I'm not asking for the code to do this, just whether it's possible to write 'display' type code than could reference different forms
Does even the question make sense!!!???
Pigmy
Remember - The light at the end of the tunnel could well be an on-coming train !
-
Sep 24th, 2002, 05:21 PM
#2
-= B u g S l a y e r =-
in a module
VB Code:
Public Sub MoveMainFrame(frm As Form, lLeft As Long, bBool As Boolean)
frm.Frame1.Left = lLeft
End Sub
call it like this
VB Code:
MoveMainFrame Me, 2300, True
or
VB Code:
MoveMainFrame Form1, 2300, True
-
Sep 24th, 2002, 05:23 PM
#3
Thread Starter
Addicted Member
That seems WAY too simple and therefore makes me feel WAAAAYYYY too stupid, but thanks!!
MUCH appreciated!!!
Pigmy
Remember - The light at the end of the tunnel could well be an on-coming train !
-
Sep 24th, 2002, 05:40 PM
#4
-= B u g S l a y e r =-
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
|