Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I Open Excel and Keep VFP in Focus?
Message
 
To
01/11/2006 12:08:11
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01165147
Message ID:
01166223
Views:
12
That was a good idea that Borislav had. I wonder if _screen.Activate() would of worked....

>Tried _screen.show(), but it did not work. However, the code Borislav suggested did work. Thanks for you input though... much appreciated!
>
>>did you try on your code put _screen.show() after you set excel.visible?
>>if ur using a toplevel form the do topleverform.show()
>>
>>>I have a program that opens an Excel spreadsheet and reads some data from it. I know I can keep the instance of Excel invisible, but I would actually like to keep it visible. However, once I set Excel as visible, it gets focus. I can't figure out how to get back to VFP (apart from manually clicking on VFP on the task bar). Is there a way to programmatically force focus back to my VFP application?
>>>
>>>Joel
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform