Results 1 to 12 of 12

Thread: Unminimizable window

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Unminimizable window

    How to load a form that will restrict the form itself to be minimized?

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,102

    Re: Unminimizable window

    If you set the MinimizeBox property to False, then the user won't be able to click it. That will probably be sufficient.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Unminimizable window

    I tried it man. I even hide the control box. but the windows + D short cut can minimize it. The scenario will be. it will be the only window that can be used in that computer by the user. but the administrator account can close the application

  4. #4
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: Unminimizable window

    Why not set the FormBorderStyle's property to a style which doesn't include that button, like SizableToolWindow or FixedToolWindow ¿
    VB.NET MVP 2008 - Present

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Unminimizable window

    Windows + D is a shortcut key of windows to minimize all opened windows. I've tested the 2 FormBorderStyles.. but still it minimizes

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,102

    Re: Unminimizable window

    That probably has the same issues. He's trying to prevent OS overrides, which is more complicated because the app doesn't even have to know about them.
    My usual boring signature: Nothing

  7. #7
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: Unminimizable window

    So you always want this form open, is that what you actually mean ¿
    VB.NET MVP 2008 - Present

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Unminimizable window

    yeah.. the same feature in the groceries in which the window for the cashier is only seen and cannot be minimized.

  9. #9
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: Unminimizable window

    I know you can use the SystemParametersInfo API function to block system keys such as Windows + D.

    What OS are you using ¿
    VB.NET MVP 2008 - Present

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    67

    Re: Unminimizable window

    Windows XP, yeah I've heard that it is API but I don't know how it goes.

  11. #11
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Unminimizable window

    There are many other shortcuts, like ALT-TAB, ALT-ESC, CTRL-ESC, WIN-R, CTRL+ALT+DEL, etc.

    (There's an idea - you could set your app as a windows shell instead of explorer.exe). This should do the trick and this can be done relatively easy.

  12. #12
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Unminimizable window

    could you use the Resizing event, and check the WindowState? If it's minimized, then reset it back to normal.... I think that might work.

    But... I have my reservations about changing the way windows works, even for a single application.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Tags for this Thread

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