Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting No Response from form.
Message
From
09/01/2003 10:11:57
 
 
To
09/01/2003 07:36:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00739737
Message ID:
00739787
Views:
15
>I have two questions, that I need help with.
>
>1. I am using a class (vfp-skin.vcx) on my form, and have created other forms and prgs to be used with the form on a command button (on the click event of this object. But with I push the button nothing happens. When I exit the main form, I found the others form behide the main form.
>****What do I need to do to make the form appear on the main form, when I push the command button event?
>
>2. Is there a way to automately create a shortcut on the desktop when installing a VFP program.
>
>***You assistance would be greatly appreciated in helping me resolve these issues. Thank You

1. How are you creating the forms? Are they class based? If so you should activate them after creating them.

2.
You can use the Windows Script Host to create a shortcut on the desktop. You could do this in the installation using the post set-up program.

As an example. (This is untested, but is a direct translation from the VB script.)

LOCAL loShell, loShortCut, lcDesktopPath

loShell = CreateObject("WScript.Shell")
lcDesktopPath = loShell.SpecialFolders("Desktop")
loShortCut = Shell.CreateShortcut(lcDesktopPath & "\test.lnk")
loShortCut.Arguments = "1 2 3"
loShortCut.Description = "test shortcut"
loShortCut.HotKey = "CTRL+ALT+SHIFT+X"
loShortCut.IconLocation = "app.exe,1"
loShortCut.TargetPath = "c:\blah\app.exe"
loShortCut.WindowStyle = 3
loShortCut.WorkingDirectory = "c:\blah"
loShortCut.Save()
Previous
Reply
Map
View

Click here to load this message in the networking platform