PDA

Click to See Complete Forum and Search --> : RE:Graphics in VB


ansu_thakur
Nov 20th, 2001, 01:35 AM
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.



ansu_thakur@yahoo.com

da_silvy
Nov 20th, 2001, 02:06 AM
how do you know how big you want them to be?

magoochris
Nov 20th, 2001, 05:00 AM
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

;)