Please Help me !

I have try to create a program like Easy Cafe. But i faced with some problem. I would like to promote user not to close my App (how to hide Close icon on top right corner of my App). I wanna ask how to prevent user turn off my of (even though in Task Manager)
Another purpose of my App is lock screen. First, the screen only display some picture and a dialog box. After user press on "Start" button on dialog box, my App'll minimize on task bar and Working screen'll show to user. When user leave (I'll restart my App), my App'll return to first state. Please help me how to lock screen and how to prevent user turn off my App



Answer this question

Please Help me !

  • Priyank C

    Hi,



    To achieve on what you intend to do. First, disable ctrl+alt+del keys task keys (Alt+Tab) and other key shortcut that would let the user kill or outfocus your form.
    I think this article would help...
    http://msdn.microsoft.com/msdnmag/issues/02/09/cqa/

    Second, Create a form make it borderless and set its windowstate to maximized. cover the form with the picture that you want to display. Create a second form, set its controlbox to false (to disable the x button) and set it to topmost( try using the SetWindowsPos API)...
    Also, try handling the Form_Closing event to disable the user on closing your form...


    I think these processes would eventually lock your screen...




    cheers,



    Paul June A. Domag

  • Christy

    Hi,


    To display an image in C++/CLI you must first have a Form and make it borderless. If you want to display it in the entire screen then you make the startup mode into maximized. Then just set your Background Image property this way:

    this->BackgroundImage = Image::FromFile("<filename>");





    cheers,



    Paul June A. Domag

  • Peter Griffith

    Thanks for you help. But now, i have some another problem. I wanna to display an Image on my Screen. But I don't know how to load and display it. With Java, i can use "Image.createImage()" and "Graphics.drawImage()". With VC++, which method and how to create an Image from file and Display it. Please help me details.... I have never programmed Graphic with VC++


  • Please Help me !