Results 1 to 10 of 10

Thread: need codes for certain buttons...

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35
    This is probably real easy but I am extremely new to all of this..what are the _Click () codes if I wanted to create my own minimize and maximize buttons on a form?
    Thanks

  2. #2
    New Member
    Join Date
    Apr 2000
    Posts
    6
    What??

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35
    Seems I need to break that down ... I have a form...no title bar.. I am making my own buttons on the form and want them to minimize or maximize my form when clicked.. how can I do this?

  4. #4
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    Me.windowstate = Minimized
    Me.windowstate = Maximized

    'Makes the form as small as possible w/o losing anything
    Me.windowstate = Normal

    Hope that helps

  5. #5
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301
    It'pretty easy:

    Me.WindowState = vbMinimized

    or vbMaximized or vbNormal.

    Or use their numeric codes:

    Me.WindowState = 0 for normal, 1 for minimized, 2 for maximized.

    BUT once minimized, you won't be able to restore or maximize it with the buttons!

    [Edited by Juan Carlos Rey on 04-08-2000 at 10:54 PM]

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35
    When its minimized doesnt it go to the taskbar, which can just be click to retore it back? (Thanx for the codes )

  7. #7
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    Yes it does.

  8. #8

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35
    Cool! Thanx! Yous are the best

  9. #9
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Off Course

    I was kidding, when in the taskbar you can not click on the "restore" or "maximize" buttons cause they are all hidden!

  10. #10

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35
    ........

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