Maximize Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    Maximize Form

    Hi all,
    I want to maximize my form using a command button and also minimize and restortion.
    using command buttons.

    Thanx
    >> Ali <<
  • VijaySofist
    New Member
    • Jun 2007
    • 107

    #2
    Hi!

    In the Command_Click Event write the following coding.


    Private Sub Command1_Click( )
    Form2.WindowSta te = 0 'For Normal State
    End Sub

    Private Sub Command2_Click( )
    Form2.WindowSta te = 1 'For Minimize State
    End Sub

    Private Sub Command3_Click( )
    Form2.WindowSta te = 2 'For Maximize State
    End Sub


    All the Best

    With Regards
    Vijay. R

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      PROBLEM SOLVED
      Thanx to all who helped me

      Comment

      Working...