|
What if you hold a boolean that states IsRestart
than instead of Application.Restart() you put Close()
And in the closing event you do your stuff and you check the IsRestart
if true, than do Application.Restart()
Try it out, because i am not sure if it will work.
|
|
|
|
|
I have a project in school where in I need to disable the task manager, and the special keys like Alt+F4, Ctrl+Alt+Del, etc... but I don't know how using C#.net... Is there anyone who could help me???
|
|
|
|
|
redangel1522 wrote: I have a project in school where in I need to disable the task manager, and the special keys like Alt+F4, Ctrl+Alt+Del
I seriously doubt the truthfullness of this statement. What is the purpose of this program?
|
|
|
|
|
our project is to make an internet Cafe program where in the client computer will only be usable everytime the server computer gave the permission... when the client is not in use, there is a program that runs which will be closed only by the server, I need to disable the task manager and the keys of the client... please help me...
|
|
|
|
|
I think that this normally is done by using security policies. And if you can do it through Active Directory, the better (central management).
What for your own application.
You can intercept the Form.Closing event and do e.Cancel = True; Than the form will not be closed, but of course you need to have a mechanism to close the app eventually (Read: when you decide it)
|
|
|
|
|
but the application can still be closed by the user using the task manager, is there a way for me to restrict that???
|
|
|
|
|
Well, if you read again my statement. Using the group policy objects you can disable the task manager from opening.
do for example start run gpedit.msc
go to: User config - Admin templ - System - Ctrl+Alt+Del options
You will find this:
Setting State
Remove Task Manager Not configured
Remove Lock Computer Not configured
Remove Change Password Not configured
Remove Logoff Not configured
So, check it out, maybe it is more easy than you think.
|
|
|
|
|
Isn't your school project about finding out for yourself how to do this, and NOT ask someone else to provide a solution for you?
If it' stuck, DO NOT pull harder!
|
|
|
|
|
Yes, i think the same, but he is asking advice and that we can give
|
|
|
|
|
i already tried to look for the solution for this but i didn't find a way for it to be done that's why i'm already asking you guys for help...
|
|
|
|
|
well, if you cant do it with policies:
disable task manager in the registry
http://www.pctools.com/guides/registry/detail/163/[^]
as for other key combinations you probably need some sort of keyhook. there are some articels on that subject here on CP..
but policies are still the best solutions for this. and not so close to the malicioussoftwarezone as keyhooks
If it' stuck, DO NOT pull harder!
|
|
|
|
|
Yehey.. Tnx for the help...
|
|
|
|
|
Hi All,
Can anyone please help me in creating a list like in Microsoft Outllok Undo.
I don't know how can i create a list like this , so if u have any idea please tell me.
Any suggestion would be appreciated.
Thanx.
Praveen Sharma
|
|
|
|
|
There are many articles here on CP about creating your own Undo. In order to do this though, you really need to have a think about the architecture that you are planning to use because this plays a heavy part in the decision of which framework to use. I would suggest that you start by having a look at this[^] article.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi,
actually i want the same list which is in microsoft outlook undo.
it would be great if u can help me , i m a new programmer in c# and just very new in my job.
thanx.
Praveen Sharma
|
|
|
|
|
I've told you where to get the information on how to implement undo. If you are wanting to get the text to appear, e.g. Undo Move, then you need to take the description of the last action off the undo stack. Any more than this, read the article.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi
I would ask if it is posible to send apr packet in C# ( .net ). In ProtocolType property I see only several types of the protocols ( igmp, ip, tpc, udp etc. ) but I don't see arp type of protocol.
Best regerads
I
|
|
|
|
|
Have you search on google?
Visit this link[^]
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Sorry. Link doesn't work.
Is
http://www.beesync.com/packetx/docs/html/Send_8cs-example.html
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
how to modify the default settings of installation process.how to add a progressbar of our own during installation
|
|
|
|
|
Depends on what framework you use to build an install. MSIs are not really configurable
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello Dears
Subject: Want to Disappear Context menue strip
I made a window service controller which are in system tray (sqlservier controler in system tray) , right click on symbol of (Controller)
the context menue strip is appear.... and show some menue like show, Exit etc...
now the problem is that if i click any where in desktop it should disapear but in our case it is not....
Now i Want to Disappear Context menue strip when i click any where on desktop except Context menue strip.....
How Can i do this???
Sooperfellow
Regards
M.Qasim Afridi
|
|
|
|
|
Check out this article[^], hopefully it will help.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hy
I have a form with a richTextBox and a button
I have text in richTextBox. When I press the button I want to insert another text in the richTextBox, but I don't use the richTextBox.Text.Insert or richTextBox.RTF.Insert, I want to insert the text like I type in richTextBox. Is it possible?
thx
|
|
|
|
|
You want the characters to appear as if you're typing ? You change the Text property, but do it with a timer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|