Wrox Programmer Forums
|
VB How-To Ask 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
 
Old January 18th, 2005, 01:02 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default lock control panel

hi everyone or anyone,

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.

thanks

imran
 
Old January 20th, 2005, 02:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Welcome to UA.

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
 
Old January 25th, 2005, 01:50 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old January 25th, 2005, 06:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can do this by changing registry keys. The key to disable control panel is here:
http://www.winguides.com/registry/display.php/543

Also, there are many others which will interest you here:
http://www.winguides.com/registry/category.php/4/

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.

hth
Phil
 
Old February 1st, 2005, 08:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Panel control in FormView steve35719 ASP.NET 2.0 Basics 5 August 18th, 2010 12:32 AM
Chapter 4: Using the Panel Control Steve1977 ASP.NET 3.5 Basics 3 September 14th, 2008 01:55 PM
Control panel maz_alaameri ASP.NET 2.0 Professional 0 March 17th, 2008 06:59 AM
Update Panel & Button Control Harjinder ASP.NET 2.0 Professional 0 January 28th, 2008 06:13 AM
One Record at a time Or Panel Control Paging guywonderer Classic ASP Basics 0 August 7th, 2005 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.