Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
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 .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: My usercontrol is not showing up in the saleslogix form...
Raj Ubendran
Posts: 24
 
My usercontrol is not showing up in the saleslogix form...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 13 8:45 AM
fiogf49gjkf0d

Hi,


SalesLogix version: 7.54


I have created a .net user control using .Net Extension Helper library provided at this link:


http://customerfx.com/pages/crmdeveloper/2011/10/27/creating-saleslogix-net-extensions-with-the-net-extensions-helper-library.aspx


 


This control being called from my salelogix form in the follwoing way:


 


'Including Script - System:FX NetExtension Helper - ExtensionControl 


 




    Dim extControl
    Set extControl = new ExtensionControl
    extControl.Load "HLCSalesLogixControls", "HLC.SalesLogix.Controls.Manage.SmartFocus.AddEditPandoraEmailKey", Form.HWND, true


 


 


 


 


 



This code didn't give us desired result as has been told in the above video as this is only showing the form NOT the user control. If I put a STOP in the above code and debug through the code then this form will show the user control as well as it should. I have been trying to figure this out but so far without any success so can anybody please advice me if you have experinced the same issue?


 


Why this should be shown when you debug but notwhen you're running at full speed?

[Reply][Quote]
Yuban
Posts: 4
 
Re: My usercontrol is not showing up in the saleslogix form...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 13 4:21 AM
fiogf49gjkf0d

Found the solution to be very basic


Dim extGlobal


Sub AXFormOpen(Sender)

    Set extGlobal = new ExtensionControl
    extGlobal.Load "SalesLogix.Controls", "SalesLogix.Controls.UserControl1", Form.HWND, true

End Sub

[Reply][Quote]
Yuban
Posts: 4
 
Re: My usercontrol is not showing up in the saleslogix form...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 13 4:22 AM
fiogf49gjkf0d

It's very basic but may help other devs as well. The control needs to be loaded into a variable that stays in scope.

[Reply][Quote]
Yuban
Posts: 4
 
Re: My usercontrol is not showing up in the saleslogix form...Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 13 4:37 AM
fiogf49gjkf0d

The other thing to remember is to release the resource:


Sub AXFormDestroy(Sender)

    ' release all unmanaged resources on Form's destruction
    Set extGlobal = nothing

End Sub


 

[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 © 2024 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): 11/22/2024 4:45:12 AM