Results 1 to 4 of 4

Thread: Quick help DESPERATELY needed. PLEASE???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Peterborough, UK
    Posts
    160

    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 !

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    in a module
    VB Code:
    1. Public Sub MoveMainFrame(frm As Form, lLeft As Long, bBool As Boolean)
    2.     frm.Frame1.Left = lLeft
    3. End Sub

    call it like this

    VB Code:
    1. MoveMainFrame Me, 2300, True

    or

    VB Code:
    1. MoveMainFrame Form1, 2300, True
    -= a peet post =-

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Peterborough, UK
    Posts
    160
    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 !

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width