General information
Category:
Forms & Form designer
Add a Button to the form and in the Click event, place the following Code:
WITH THISFORM.MyGrid && I assume this is the name of your grid
lnWidth = .Width
lnHeight = .Height
lnFormH = THISFORM.Height
lnFormW = THISFORM.Width
Thisform.windowState = 2 && This maximises the form
.Width = THISFORM.Width*lnWidth/lnFormW
.Height = THISFORM.Height*lnHeight/lnFormH
ENDWITH
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only