Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello guys... I browse some of the sample here and some one gave me this link
This will open a website in kiosk mode but what i want is my window form to be like the kiosk, i mean i dont want it to be having a close/minimize/maximize button
you see i have a windows form that has an image on it and i want only that image to be displayed and i dont want the form bar to be displayed...its more like the kiosk link that was provided but the difference is i dont want a website to be open instead i want my form with an image to be displayed... its like creating my own screen saver... hope you can provide me some example...
it seems that this code
ShowWindow(FindWindow("Shell_TrayWnd", null), 0);

is responsible to make the browser to be window less now i want my form to be like this... how am i going to achieve it?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Mar-11 0:32am    
It is pretty easy unless you want to disable Ctrl+Alt+Del, which is a problem... Do you require it?
--SA
Madzmar25 26-Mar-11 0:35am    
well i found a way to disable the ctrl+alt+del and its through using any event like if the user move his mouse then ill just call the

public bool FindAndKillProcess(string name)
{
//here we're going to get a list of all running processes on
//the computer
foreach (Process clsProcess in Process.GetProcesses()) {
//now we're going to see if any of the running processes
//match the currently running processes by using the StartsWith Method,
//this prevents us from incluing the .EXE for the process we're looking for.
//. Be sure to not
//add the .exe to the name you provide, i.e: NOTEPAD,
//not NOTEPAD.EXE or false is always returned even if
//notepad is running
if (clsProcess.ProcessName.StartsWith(name))
{
//since we found the proccess we now need to use the
//Kill Method to kill the process. Remember, if you have
//the process running more than once, say IE open 4
//times the loop thr way it is now will close all 4,
//if you want it to just close the first one it finds
//then add a return; after the Kill
clsProcess.Kill();
//process killed, return true
return true;
}
}
//process not found, return false
return false;
}

i just want it to be like kiosk mode... i would really appreciate it if you can help me and beside your the one helping me ever since i start posting here in codeproject ^_^ thanks a lot and if you have other way to disable the ctrl+alt+del without using the gina.dll then i would really be happy to know another way
Sergey Alexandrovich Kryukov 26-Mar-11 0:40am    
As I understand, Gina.DLL is ignored in Vista and Window 7. What platform do you need to use?
--SA
Sergey Alexandrovich Kryukov 26-Mar-11 0:43am    
Oh, I see what are you talking about -- just checked your previous posts...
Sorry, I fail to understand how you disable Ctrl+Alt+Del with the code above.
--SA
Madzmar25 26-Mar-11 0:49am    
well what im doing is just when the user move his mouse or do any action that will trigger my global hook i just simple check if there is an existing process running namely taskmgr.exe if i was able to find such process then i just kill it using
clsProcess.Kill();

so basically im when the user trigger the globalhooks i just simply check the task manager if the taskmgr.exe is running if its true i just end its proces..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900