fiogf49gjkf0d Expose a Public Property in the slxwrapper of your .Net extension that you can use to store the value you want.
I don this with 2 properties
CanLoad is a boolean that determines whether or not the .net extension can load and execute properly
ExceptionMessage is a string property that is used to display the exception message if can load is false
Example
Inside the run method ot the ,net extension
try{ //Code to Load the extension, controls etc CanLoad = true; } catch (Exception ex) { CanLoad = false; ExceptionMessage = ex.Message }
Inside of slx form that runs the the .net extension
Assuming DotNetControl is properly instantiated as a .net extension label1 is a label control whose visible property is set to false and Edit1 is a text Edit control whose visible properly is set to false
If DotNetControl.CanLoad = False Then Label1.Caption = "The Dashboard could not load. Copy and Paste the error below and send it to IT" Label1.Visible = True Edit1.Text = DotNetControl.ExceptionMessage edit1.Visible = True End If
|