Thanks for the clarification.
You are typically going to use ShowMessageByKey to show a custom security denied message if you are setting up your permissions with a "Message Key" denied action message, otherwise, you would just do a ShowMessage() with the message text.
Either way, you can get the message key or the message text via SecurityBasics.CurrentUser.GetPermission("YourKey").BlockedMessageOrKey
Hope it helps!
I created a Security Permission named "DatabaseConnection" and assigned a Deny action to some Users, now here is the code I am using to test the security and show the Available Connection Strings form:
loEventArgs =
loForm.Close()
loForm.Dispose()
MicroFour.StrataFrame.Data.ConnectionManager.SetConnections()
I got part of the code that deals with Me.OnSecurityDeny from the SF BaseForm class. This code is working fine, but I wonder this: