You will have to manually create a handler on the SessionLock class. You would add this handler in your AppMain in the InitAPplication method more than likley. It would look something like this:AddHandler MicroFour.StrataFrame.Security.SessionLock.BeforeSessionLock, Addressof YourMethodHandler
You would then do the same thing for the AfterSessionLock. When you create the "YourMethodHandler" method, just make sure the signature is the same as the event (has the same number of parameters and types of parameters). It would just be a Sub.
Private Sub YourMethodHandler(...)
'-- Place your code here...
End Sub
If you can't determine the signature of the method let me know and I will post it for you. I can't remember it off of the top of my head.