VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
please help me in finding good and working code in VB 6.0 for locking control panel and task manager. if it dissalow the user to go registry of windows, this will be nice.
Wow, that is a dangerous task you're asking. You do have the right to block people from tampering with your Access database and code, but no user in his/her right mind is going to allow you to give him/her a program that will do what you ask. I know I wouldn't... it's MY computer.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
SerranoG thanks for reply. I know i dont have any right to block anyone's computer. I am sorry that i didnt explain you why i need the program. Actually its for net cafe. I want to block many things as possible, just the user will be allowed to use internet. In net cafe all computers are mine. Please help me. I want the VB code. Thankyou
I haven't given any VB code for this because there is no built-in method of changing general registry settings from VB, you have to use either a WinAPI call or the WSH objects - so its actually easier to do it from a simple .vbs script file.
Under XP, for security reasons a lot of features cannot be changed programmatically.
The only way to do it is to create a user and set the right permissions (like no RUN menu, no task manager, no shut down allowed etc)