This VFPX project may also be worth investigating: http://vfpx.codeplex.com/wikipage?title=ParallelFox&referringTitle=Home
-- rk -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Tracy Pearson Sent: Monday, November 04, 2013 1:30 PM To: [email protected] Subject: RE: Hiding a Form Jeff Johnson wrote on 2013-11-04: > I have a modeless form that launches a print to pdf process. I put > my code in the init and return .f. but then the prg that launched the > form waits for the init to take place. Instead, I want to launch the > form hidden but running in the background and return to the prg immediately. > What is the best way to do this. This form prints a report to pdf > and I don't want the user to have to wait for it. > > TIA Jeff, You're asking VFP to be multithreaded. It is not. You could have a separate program you launch with ShellExec API to do the longer process you don't need feedback from. I need feedback so I use a C++ DLL from Christof DMULT.DLL. Kevin Ragsdale has a post about Multithreading Visual FoxPro http://kevinragsdale.net/multithreaded-visual-foxpro/ _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD044228EE8E6E7@ACKBWDDQH1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

