@cebugdve
ok...
try to do that but study pa ko sa ways... wala pa ko kasulay ug codings ani..
@cebugdve
ok...
try to do that but study pa ko sa ways... wala pa ko kasulay ug codings ani..
do you want to disable the alt+f4 in the system or just for your application?
you just use the closing event of the form
Code:Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If <condition> Then e.Cancel = True End If End Sub
In case you want to disable this in your system permanently
get a knife take out the "F4" keys in your keyboard.![]()
Why do you need to disable those key by the way?
What problem are you having?
I'm sensing the your question is a solution to your problem.
So what do you want to do when you exit?
There could be another solution.
If you want to prevent that your app can be closed with alt-f4, just use the close event.
If you want to prevent system wide alt-f4, you need to write a dll which installs a keyboard hook (similar a keylogger does).
there's a lot of ways to close appliction in Windows...aside from ALT-F4. we can use taskill via dos mode, task manager, stoping services, you can even kill process from a simple program or any freewares out there... the best way to prevent the application from closing is to educate the user... if this is some kind of a flexlm or a process that must run regularly, then it would be better to use some threading, or create your own windows services to constantly check the process and rerun it if it is not running, but again, all can be stop...
off topic na lang pod ko...
@Mark and others...
pwede ra ba na mabutang nako ang winword application sa ako VB.net nga project
bali instead of lain siya nga app... naa siya sa sulod sa akong program![]()
@ben77 I dont know if it is possible, if you want to run the whole winword application as child application or MDI application... but winword itself will create a new process externally from any other application...unless you could break down how the process being called... apparently, most of it is series of executions....if you try to stop and run some modules from your applications the other modules might not able to discover...
Similar Threads |
|