I have a function: -
private void HideTaskPanel()
-
{
-
//lay goc la HKEY_CURRENT_USER
-
RegistryKey RootKey = Registry.CurrentUser;
-
//lay subkey
-
RootKey.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System",true);
-
-
RootKey.SetValue("DisableTaskMgr",1);
-
RootKey.Close();
-
}
when testing on registry, I not found "DisableTaskMgr", can you help me to write that value on registry.
Thanks
15 4941
I have repair it in new code: -
Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
-
regKey.SetValue("DisableTaskMgr", 1);
-
regKey.Close();
-
but it appear new message box:
"Task Manager has been disable by your administrator"
I want to hide this message box, can you show me??
Can you explain how it is showing the message box? Your code looks good.
You can change this like - Microsoft.Win32.RegistryKey regKey = SomeAssignment;
Like - using Microsoft.Win32; // at the add class part
-
-
private void mymethod()
-
{
-
RegistryKey regKey = SomeAssignment;
-
}
I have repair it in new code: -
Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
-
regKey.SetValue("DisableTaskMgr", 1);
-
regKey.Close();
-
but it appear new message box:
"Task Manager has been disable by your administrator"
I want to hide this message box, can you show me??
Is there a problem with this message popping up?
It seems to me that you would really want to inform the user that your code has disabled the task manager.
Please explain what you are trying to do in more detail.
I want to prevent user press Ctrl+Alt+Del, but I can't. So I want to hide task manager. but it appears an message box. I don't want so. Can you help me ??
Thanks
You are bit lazy to describe your problem. You done the code for disable Task manager and asking to disable the message box. But I am not getting any message box some one may get,let me know!
Can you explain what you done and when and where it is showing the message box?
are u trying to create some kinda spyware :)
Please read my last post, I'm not lazy and not write spyware, that's problem in my project. Can you read carefully the question upper, and you will know.
I use the code before to hide task manager when you press Ctrl+Alt+Del. I write a key in registry, you can review the code before. But after I write that key success, I press Ctrl+Alt+Del, the appear a pop up message "Task Manager has been disable by your administrator", and I want to hide pop up message. How to do that???
Okay, What is your windows version?
In XP you will not get this messagebox.
Okay, What is your windows version?
In XP you will not get this messagebox.
Strange, I got a bit of spyware that did just this. I run Windows XP and I still got the message >.> Of course, it was spyware, so I murdered it with a stick.
checkout this post: Task Manager Disabled Registry Key it doesnt give the vb.net code but it gives you the exact registry key that needs to be
added/deleted in order to show/hide task manager
hope this helps
Okay, What is your windows version?
In XP you will not get this messagebox.
Oh, what's a pity. I use Win XP Professional version 2002 Service Pack 2. But it also appear that pop up message. How to hide popup message by C#???.
Thu
I don’t know why it’s not popping for me! I Never changed your code.
use the SendKey Class to simulate tab/enter keys to communicate with the pop up box, and subside it
use the SendKey Class to simulate tab/enter keys to communicate with the pop up box, and subside it
Can you explain more about using the SendKey Class to simulate tab/enter keys to communicate with the pop up box. How will we write it in C#??
In your C# class, type in
SendKeys.Send("{TAB}");
It shows up in intellisense so you will not miss it.
Though of the class is not a form type then you will have to use the namesapce System.Windows.Form
the rest is explanatory.
Search online on how to send commands using this (like enter, shift+Tab, etc)
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |