Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Basic equivalent to LockScreen
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00326433
Message ID:
00326442
Views:
27
>I have cause to reopen my VB knowledge, and in doing so, I am dealing with some forms ( obviously ). In VFP, I regularly set the LockScreen attribute of the form when hiding on screen activity from the user. What is the VB equivalent -- many of the attributes in the property sheet in VB are intuitively obvious to the most casual VFP programmer, but I don't see what to set to make the same kind of a change to the form.

Hi Robin,

I don't believe that there's a direct property you can manipulate like VFP's. My VB, however, is pretty rusty, so maybe someone else knows of a way to do this other than what I'm about to mention.

VB forms have an hWnd property. To simulate the LockScreen property. Declare the API function LockWindowUpdate() (it's in USER32.DLL) and pass it the form's hwnd property. To "unlock" it, call the same function with 0 as the parameter.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform