Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forum maximum design area
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01335863
Message ID:
01336252
Views:
23
This message has been marked as the solution to the initial question of the thread.
>I will remind you
>
>
>TIA

Here it is:
LOCAL lcForm, loForm 
lcForm = INPUTBOX("Type the FormName you want to create: ", "New Form","")
IF EMPTY(m.lcForm)
  RETURN
ENDIF

MODIFY FORM (m.lcForm) NOWAIT 

loForm  = ASELOBJ(laForm, 1) 
IF VARTYPE(laForm[1]) = 'O' AND LOWER(laForm[1].class) = "form"
   laForm[1].MaxHeight = 600
   laForm[1].MaxWidth = 800
ENDIF
KEYBOARD '{CTRL+W}' && Save changes

=INKEY(3)
MODIFY FORM (m.lcForm)
You can add this as a custom intellisense script or just add a macro to run it when you want to create a new form.

Not sure I got it 100% right, it was just something quick.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform