Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Performing ShellExecute as modal
Scott Smallbeck
Posts: 62
 
Performing ShellExecute as modalYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 9:45 PM
I would like to launch a 3rd party app in modal mode from a SalesLogix form. I had hoped one of the vShow parameters would work but guess not.

Goal is to wait for an XML file to be created in the 3rd party app to be consumed by SLX after the user closes the app.

Any ideas?

[Reply][Quote]
Lloy Sanders
Posts: 69
 
Re: Performing ShellExecute as modalYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jul 08 3:14 PM
The only way to do this is to create the 3rd party app as a .NET extension (or call it from a .Net extension). Ryan has several good articles on this site to show you how this is done.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Performing ShellExecute as modalYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jul 08 3:22 PM
Hi Scott,

Sorry for chiming in late on this one. As Lloy mentioned, it will be up to some Win32Api trickery, but it certainly isn't hard to do (the article here http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=91 does show all the right APIs to use from .NET to pull this off).

Basically, you'll do the following:

1) Use FindWindow or FindWindowEx to get the HWND of the other app
2) Use FindWindow or FindWindowEx to get the HWND of the SLX main window
3) Use SetParent, passing the HWND of the other app and the HWND of the SLX window to make SLX the parent of the other app

That is it.

Does that make sense? Let me know of any questions you have - don't get too scared off thinking this will be hard, because you'll likely be surprised at how easy it is.
[Reply][Quote]
Scott Smallbeck
Posts: 62
 
Re: Performing ShellExecute as modalYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jul 08 3:24 PM
Great, thanks. I will work through this and post back the results!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/24/2025 1:12:26 PM