CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: System Dialog!

  1. #1
    Join Date
    Mar 2007
    Posts
    116

    Lightbulb System Dialog!

    Hello Everyone,

    I am working on VisualStudio2008 (c#) and trying to create a windows form as a System Dialog.
    Means when this form is open then user should not allow using any other application.
    It should work as a “ShutDown” dialog.

    Please provide me any sample.

    Thanks

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: System Dialog!

    I'm not sure this is possible. OS shoul not allow it, because it could allow you (or user) to disable whole system. Event it would be possible, I think it is not good practice.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  3. #3
    Join Date
    Mar 2007
    Posts
    116

    Lightbulb Re: System Dialog!

    Basically I have created a survey application which will ask few questions.
    What I am trying to do here , when user logon to his system this application should run automatically (Means startup)
    Without completing survey user should not allow to use other system applications.

    Please let me know your thought.

  4. #4
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: System Dialog!

    Make the application fill the whole screen and set it to 'always on top' may be a start.

    If it loses focus before the survey is complete, logoff the user/shut the system down..

    Hey... please don't install this on my machine
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  5. #5
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: System Dialog!

    Thar could work, but I still believe it is not a good idea to make such an application, Don't forget that you should serve to the users, not distrub them.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  6. #6
    Join Date
    Mar 2007
    Posts
    116

    Re: System Dialog!

    Is there any other way to do that?
    Thanks for your time!

  7. #7
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: System Dialog!

    It is indeed possible.
    This is a VB.NET article, right here on CodeGuru ( people forget / don't even know about CG's massive resource of articles )

    http://www.codeguru.com/vb/gen/vb_sy...le.php/c16501/

  8. #8
    Join Date
    Jun 2008
    Posts
    2,477

    Re: System Dialog!

    Quote Originally Posted by boudino View Post
    Thar could work, but I still believe it is not a good idea to make such an application, Don't forget that you should serve to the users, not distrub them.
    There are some valid uses for this sort of thing. For example, a kiosk type app at a vendor store where you should not be able to interact with anything but the application. The problem is that people who ask for this sort of thing do not tell us why it is necessary, and in general is a horrible idea.

  9. #9
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: System Dialog!

    Yes, that is relevant scenario. But I thougt than windows has a option to run in "kiosk mode". I'm false? Maybe is the option only of IE.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured