How to lock the SolidWorks screen?!

Hi,
We can send a message via SolidWoks below command;

swApp.SendMsgToUser("Test")

So, Is there any way to lock SolidWorks seession?

I have VB program and I want to lock user to prevent chose anything from Design Tree while opened VB form until finish its processl. Like ModalWindow. When I open the window then let the Solidworks freeze until I close the VB window.

Is this possible?...

Regards,

Mucip:)

SolidworksApi macros