Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Where's the error please ?

15 Nov 2013   #1

Windows 7 Ultimate x64
Where's the error please ?

Sorry to bother you again

But when I try this code it gives me an error. Where's the error please ?


Sub test()

Dim readValue As String

readValue = My.Computer.Registry.GetValue _
("\Local Computer Policy\User Configuration\Administrative Templates\System\Ctrl+Alt+Del Options\", "Remove Task Manager", Nothing)

MsgBox ("The value is " & readValue)

End Sub

My System SpecsSystem Spec
15 Nov 2013   #2
Microsoft MVP

Windows 7 Ultimate 32bit SP1

My System SpecsSystem Spec
15 Nov 2013   #3
x BlueRobot


I haven't written in BASIC for a long time, and never really bothered with it. C++ is more my kind of thing, and I've only recently decided to start catching up on what I've forgotten.

The method (or function) doesn't supply a registry key, so it's probably not going to find anything. Furthermore, doesn't the last parameter require you to pass a object?
My System SpecsSystem Spec

16 Nov 2013   #4

Windows 7 Ultimate x64

Thanks for you reply.

I am not used at working with registy keys. In previous replies to my thread I was referred to functions dealing with registry keys. But I was asking about local group policy. So I am a little bit confused since I am wondering if addressing those is really the same then addressing the registry keys.
My System SpecsSystem Spec
17 Nov 2013   #5
x BlueRobot


You pass a string as the first argument; the name of the registry key which you wish to search for. Your searching for a folder path.

Have you checked Jacee's link?
My System SpecsSystem Spec

 Where's the error please ?

Thread Tools

Similar help and support threads
Thread Forum
Burnt out from error error error! Time to go back to Paper.
Hello there. I have been redirected here by jamanji, whom has been most helpful by the way. My PC crashed a little over a week ago. Rather than retype everything, I would like to give you the link to my post. I am not 'Tech' per se, but I would like to try and resolve my problem myself, To...
System Security
Error 41, Error 1001 and error 6008.
Hello there. Recently my computer have just randomly shutdown meanwhile i'm playing games like CS;GO, League of Legends. The screen will just turn black and it will start to make one hell of annoying noise untill it reboots. I've updated all my drivers. Tested my memory. Tested my RAM. Run a...
BSOD Help and Support
Error copying file: Data error (cyclic redundancy check). CRC Scan ?
Edit: Think my hard drive may be failing and was the cause of my file synchronizing crash. I use it mostly to stream music and video and access the hard drive a lot. Any advice thanks HDDStatus - Tool to check hard disk status, health and reliability Hey, I've been using GoodSync for the...
Backup and Restore
BSOD by ntoskrnl.exe, error d1, error 3b, error 1a
I've just install windows 7 home premium 64bit and got 4 times of BSOD. for the first time error code is 0x0000001a for the 2nd time error code is 0x0000003b for the 3rd time error code is 0x0000003b for the 4th time error code is 0x000000d1 I also attach minidump files and text files that...
BSOD Help and Support
Scan Error Error while Scan::0::LEAD Error: Twain source manager no
hi.... i have promblme , i do not know how to fix it.. i have kodak scnners i1220 plus i have RD Web Access the promblme is.. I have a system based on Oracle has been connted with one scanners( i connected with scanners) When i do a scan shows me this a message (Scan Error Error while...
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:20.
Twitter Facebook Google+