>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
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