CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2013
    Posts
    2

    [RESOLVED] Disable controls and change window size

    I have created an exam environment for our schools, it comprises of 3 files; a .kix file that says if they are in the examination group run a .vbs file. The .vbs file kills the explorer.exe task so they don't have any taskbar or desktop shortcuts and then opens a .hta file.

    The .hta file is a user interface that has icons for apps like Win Word that executes the application when you click on it. There is also a log off button.

    I am looking for some kind of code that stops the students from being able to close, minimise and resize the window. Does anyone know of any code that can lock this down so they literally can't do anything except click the icons inside the window.

    Hope this all makes sense? I have the codes if you want them

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Disable controls and change window size

    What does your question have to do with the Visual C++ Programming?
    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2013
    Posts
    2

    Re: Disable controls and change window size

    Quote Originally Posted by VictorN View Post
    What does your question have to do with the Visual C++ Programming?
    Well Visual Basic but i couldn't see a category?

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Disable controls and change window size

    Quote Originally Posted by cdavies View Post
    Well Visual Basic but i couldn't see a category?
    There's two Visual Basic forums. One for Visual Basic 6 and one for Visual Basic .net.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

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