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

    Full Screen Browser

    Is there any way to make IE/Netscape browser to be a full-screen application with "exit" and reboot key and switching to other applications disabled ???? The reason is that I would like to setup a browser only terminal PC. I am thinking doing this with Visual basic is the right direction, is it ???????




  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Full Screen Browser

    You could add a WebBrowser Control to a Borderless, Maximized Form and use the SystemParametersInfo API to Disable all the HotKeys/TaskSwitching Etc.. ie.
    private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (byval uAction as Long, byval uParam as Long, byref lpvParam as Any, byval fuWinIni as Long) as Long
    private Const SPI_SCREENSAVERRUNNING = 97

    private Sub Form_Load()
    'Disable HotKeys, inc. CTRL+ALT+DEL and ALT+TAB
    Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, byval 0&, 0&)
    WebBrowser1.Navigate ""
    End Sub

    private Sub Form_Resize()
    WebBrowser1.Move 0, 0, ScaleWidth, ScaleHeight
    End Sub

    private Sub Form_Unload(Cancel as Integer)
    'ReEnable HotKeys
    Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, byval 0&, 0&)
    End Sub



    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert: http://www.allexperts.com/displayExp...p?Expert=11884
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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