Results 1 to 5 of 5

Thread: Fullscreen mode in VB (above the taskbar) ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Malaysia
    Posts
    69

    Post

    I'm new here.

    How do I set the VB app to run in total fullscreen so that the user cannot even access to the taskbar ?

    Thanks.

  2. #2
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post Reply

    Use
    Form1.WindowState = 2
    I also have the sourcecode for a program i have programmed that can disable the startbutton, CTRL+ESC , CTRL+ALT+DEL and hide your program in the tasklist.
    Just mail me if you want the source : o ))

    Edited by CyberCarsten on 03-11-2000 at 11:14 AM
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  3. #3
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    Post in addtion....

    also set the BorderStyle = 0 as well as WindowState = 2

    and the use this code:

    add below to a module:

    Private Declare Function SetWindowPos Lib "user32" (ByVal h%, ByVal hb%, ByVal X%, ByVal Y%, ByVal cx%, ByVal cy%, ByVal f%) As Integer

    Private Const SWP_NOMOVE = &H2
    Private Const SWP_NOSIZE = &H1
    Private Const HWND_TOPMOST = -1
    Private Const HWND_NOTOPMOST = -2

    Public Sub OnTop(vForm As Form, BTop As Boolean)
    If BTop = True Then
    SetWindowPos vForm.hWnd, _
    HWND_TOPMOST, 0, 0, 0, 0, _
    SWP_NOMOVE + SWP_NOSIZE
    Else
    SetWindowPos vForm.hWnd, _
    HWND_NOTOPMOST, 0, 0, 0, 0, _
    SWP_NOMOVE + SWP_NOSIZE
    End If
    End Sub


    the add this to the form_load section:

    Private Sub Form_Load()
    OnTop Me, True
    End Sub

    well, hope it helps

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Malaysia
    Posts
    69

    Post

    Thanks guy.

  5. #5
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    Just try this, it's a little shorter:

    Code:
    Form1.Top = 0
    Form1.Left = 0
    Form1.Width = Screen.Width
    Form1.Height = Screen.Height
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

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