Results 1 to 3 of 3

Thread: RE:Graphics in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    India
    Posts
    1

    RE:Graphics in VB

    Hi,

    I have a form with two frames and i want to enlarge these frames whenever they get double clicked in individual manner and again get resized.



    [email protected]

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    how do you know how big you want them to be?

  3. #3
    Lively Member magoochris's Avatar
    Join Date
    Nov 2001
    Location
    Australia
    Posts
    81
    Private Sub Frame1_DblClick()
    Frame1.Height = Frame1.Height * 2
    Frame1.Width = Frame1.Width * 2 'Doubles the frame each time
    End Sub

    or

    Private Sub Frame1_DblClick()
    Frame1.Height = Frame1.Height + 2
    Frame1.Width = Frame1.Width + 2 'adds 20 to the frame each time
    End Sub


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