Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expand Form

Status
Not open for further replies.

MrMeric

Technical User
Apr 1, 2004
48
US
Good day!
I would like to accomplish this: When a user clicks on a button, the form will expand and a subform will appear in the expanded area.

I've tried to implement this function with no avail.
I currently have the subform position set to 0,0,0,0. I have a button that contains:
Code:
Form.Width = 17460
Me.Actions.Move 12540, 60, 4812, 4284
"Actions" is the name of the subform. I thought this would work, but it doesn't.

Any ideas?
 
Nevermind, I got it!
Code:
Dim FormLeft As Integer
Dim FormTop As Integer

FormLeft = Me.Form.WindowLeft
FormTop = Me.Form.WindowTop
Me.Form.Move FormLeft, FormTop, 17460, 6650
Me.Actions.Move 12540, 60, 4812, 4284
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top