Home All Groups Group Topic Archive Search About
Author
29 Nov 2006 8:08 PM
Richard
Dear All,

Does someone have a clue as to how you can get a form to show show itself
"Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
press F11?

Really need a solution

Regards

Richard

Author
29 Nov 2006 7:12 PM
Ryan S. Thiele
Change the property 'Show In Taskbar' to False. (Hides it from showing in
the taskbar)
Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
position.)

Is this what you need?

--
--
Thiele Enterprises - The Power Is In Your Hands Now!
--
"Richard" <rl***@gmx.de> wrote in message
news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
Dear All,

Does someone have a clue as to how you can get a form to show show itself
"Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
press F11?

Really need a solution

Regards

Richard
Author
29 Nov 2006 10:05 PM
Richard
No.... :( ... My Form is supposed to take over the whole screen...

So with other words... You will only see my Form and no Taskbar or any other
program. They may run in the background.

Thx a mil anyway


"Ryan S. Thiele" <mali***@verizon.net> wrote in message
news:oYkbh.11272$7a2.151@trndny06...
Show quoteHide quote
> Change the property 'Show In Taskbar' to False. (Hides it from showing in
> the taskbar)
> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
> position.)
>
> Is this what you need?
>
> --
> --
> Thiele Enterprises - The Power Is In Your Hands Now!
> --
> "Richard" <rl***@gmx.de> wrote in message
> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
> Dear All,
>
> Does someone have a clue as to how you can get a form to show show itself
> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
> press F11?
>
> Really need a solution
>
> Regards
>
> Richard
>
>
>
Author
29 Nov 2006 9:33 PM
Mudhead
Something like this. Form Keypreview is set to true.


Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
              If e.KeyData = Keys.F11 Then
                   If Me.FormBorderStyle =
Windows.Forms.FormBorderStyle.None Then
                         Me.FormBorderStyle =
Windows.Forms.FormBorderStyle.None
                        Me.WindowState = FormWindowState.Maximized
                  Else
                       Me.FormBorderStyle =
Windows.Forms.FormBorderStyle.Sizable
                      Me.WindowState = FormWindowState.Normal
                  End If

        End If
    End Sub



Show quoteHide quote
"Richard" <rl***@gmx.de> wrote in message
news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
> No.... :( ... My Form is supposed to take over the whole screen...
>
> So with other words... You will only see my Form and no Taskbar or any
> other program. They may run in the background.
>
> Thx a mil anyway
>
>
> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
> news:oYkbh.11272$7a2.151@trndny06...
>> Change the property 'Show In Taskbar' to False. (Hides it from showing in
>> the taskbar)
>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>> position.)
>>
>> Is this what you need?
>>
>> --
>> --
>> Thiele Enterprises - The Power Is In Your Hands Now!
>> --
>> "Richard" <rl***@gmx.de> wrote in message
>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>> Dear All,
>>
>> Does someone have a clue as to how you can get a form to show show itself
>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
>> press F11?
>>
>> Really need a solution
>>
>> Regards
>>
>> Richard
>>
>>
>>
>
>
Author
29 Nov 2006 9:42 PM
Mudhead
Oops...
If e.KeyData = Keys.F11 Then
     If Me.FormBorderStyle <> Windows.Forms.FormBorderStyle.None Then
         Me.FormBorderStyle =  Windows.Forms.FormBorderStyle.None
etc..

Show quoteHide quote
"Mudhead" <noth***@yourhouse.com> wrote in message
news:eJl3I4$EHHA.1248@TK2MSFTNGP02.phx.gbl...
> Something like this. Form Keypreview is set to true.
>
>
> Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
> System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
>              If e.KeyData = Keys.F11 Then
>                   If Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.None Then
>                         Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.None
>                        Me.WindowState = FormWindowState.Maximized
>                  Else
>                       Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.Sizable
>                      Me.WindowState = FormWindowState.Normal
>                  End If
>
>        End If
>    End Sub
>
>
>
> "Richard" <rl***@gmx.de> wrote in message
> news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>> No.... :( ... My Form is supposed to take over the whole screen...
>>
>> So with other words... You will only see my Form and no Taskbar or any
>> other program. They may run in the background.
>>
>> Thx a mil anyway
>>
>>
>> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
>> news:oYkbh.11272$7a2.151@trndny06...
>>> Change the property 'Show In Taskbar' to False. (Hides it from showing
>>> in
>>> the taskbar)
>>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>>> position.)
>>>
>>> Is this what you need?
>>>
>>> --
>>> --
>>> Thiele Enterprises - The Power Is In Your Hands Now!
>>> --
>>> "Richard" <rl***@gmx.de> wrote in message
>>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>>> Dear All,
>>>
>>> Does someone have a clue as to how you can get a form to show show
>>> itself
>>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
>>> press F11?
>>>
>>> Really need a solution
>>>
>>> Regards
>>>
>>> Richard
>>>
>>>
>>>
>>
>>
>
>
Author
29 Nov 2006 10:54 PM
Richard
Yeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssssssssssssssssssssssssssss.....

Thanks a mil... now I want to see what my employees can do about this :)

Thanks a mil

Richard

Show quoteHide quote
"Mudhead" <noth***@yourhouse.com> wrote in message
news:uanOB9$EHHA.5000@TK2MSFTNGP03.phx.gbl...
> Oops...
> If e.KeyData = Keys.F11 Then
>     If Me.FormBorderStyle <> Windows.Forms.FormBorderStyle.None Then
>         Me.FormBorderStyle =  Windows.Forms.FormBorderStyle.None
> etc..
>
> "Mudhead" <noth***@yourhouse.com> wrote in message
> news:eJl3I4$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>> Something like this. Form Keypreview is set to true.
>>
>>
>> Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
>> System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
>>              If e.KeyData = Keys.F11 Then
>>                   If Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.None Then
>>                         Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.None
>>                        Me.WindowState = FormWindowState.Maximized
>>                  Else
>>                       Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.Sizable
>>                      Me.WindowState = FormWindowState.Normal
>>                  End If
>>
>>        End If
>>    End Sub
>>
>>
>>
>> "Richard" <rl***@gmx.de> wrote in message
>> news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>>> No.... :( ... My Form is supposed to take over the whole screen...
>>>
>>> So with other words... You will only see my Form and no Taskbar or any
>>> other program. They may run in the background.
>>>
>>> Thx a mil anyway
>>>
>>>
>>> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
>>> news:oYkbh.11272$7a2.151@trndny06...
>>>> Change the property 'Show In Taskbar' to False. (Hides it from showing
>>>> in
>>>> the taskbar)
>>>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>>>> position.)
>>>>
>>>> Is this what you need?
>>>>
>>>> --
>>>> --
>>>> Thiele Enterprises - The Power Is In Your Hands Now!
>>>> --
>>>> "Richard" <rl***@gmx.de> wrote in message
>>>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>>>> Dear All,
>>>>
>>>> Does someone have a clue as to how you can get a form to show show
>>>> itself
>>>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if
>>>> you
>>>> press F11?
>>>>
>>>> Really need a solution
>>>>
>>>> Regards
>>>>
>>>> Richard
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
30 Nov 2006 10:57 AM
C-Services Holland b.v.
Umm press the "windows" key :P
Richard wrote:

Show quoteHide quote
> Yeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssssssssssssssssssssssssssss.....
>
> Thanks a mil... now I want to see what my employees can do about this :)
>
> Thanks a mil
>
> Richard
>




--
Rinze van Huizen
C-Services Holland b.v
Author
29 Nov 2006 10:51 PM
Richard
Hi Mudhead.

Nope :)

If the argument is true then the form maximizes but it doesn't go over the
complete screen. Tell me, is it just me or does noboddy understand me...

Go into your Internet Explorer and press F11 and see what happens. Now
........ I want the same.....

Regs,

Richard


Show quoteHide quote
"Mudhead" <noth***@yourhouse.com> wrote in message
news:eJl3I4$EHHA.1248@TK2MSFTNGP02.phx.gbl...
> Something like this. Form Keypreview is set to true.
>
>
> Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
> System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
>              If e.KeyData = Keys.F11 Then
>                   If Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.None Then
>                         Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.None
>                        Me.WindowState = FormWindowState.Maximized
>                  Else
>                       Me.FormBorderStyle =
> Windows.Forms.FormBorderStyle.Sizable
>                      Me.WindowState = FormWindowState.Normal
>                  End If
>
>        End If
>    End Sub
>
>
>
> "Richard" <rl***@gmx.de> wrote in message
> news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>> No.... :( ... My Form is supposed to take over the whole screen...
>>
>> So with other words... You will only see my Form and no Taskbar or any
>> other program. They may run in the background.
>>
>> Thx a mil anyway
>>
>>
>> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
>> news:oYkbh.11272$7a2.151@trndny06...
>>> Change the property 'Show In Taskbar' to False. (Hides it from showing
>>> in
>>> the taskbar)
>>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>>> position.)
>>>
>>> Is this what you need?
>>>
>>> --
>>> --
>>> Thiele Enterprises - The Power Is In Your Hands Now!
>>> --
>>> "Richard" <rl***@gmx.de> wrote in message
>>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>>> Dear All,
>>>
>>> Does someone have a clue as to how you can get a form to show show
>>> itself
>>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you
>>> press F11?
>>>
>>> Really need a solution
>>>
>>> Regards
>>>
>>> Richard
>>>
>>>
>>>
>>
>>
>
>
Author
29 Nov 2006 11:14 PM
Richard
Ok and now how to you cancel a key that was pressed?

lets say he may not press ALT+F4

Show quoteHide quote
"Richard" <rl***@gmx.de> wrote in message
news:%23e90SAAFHHA.2356@TK2MSFTNGP06.phx.gbl...
> Hi Mudhead.
>
> Nope :)
>
> If the argument is true then the form maximizes but it doesn't go over the
> complete screen. Tell me, is it just me or does noboddy understand me...
>
> Go into your Internet Explorer and press F11 and see what happens. Now
> ....... I want the same.....
>
> Regs,
>
> Richard
>
>
> "Mudhead" <noth***@yourhouse.com> wrote in message
> news:eJl3I4$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>> Something like this. Form Keypreview is set to true.
>>
>>
>> Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
>> System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
>>              If e.KeyData = Keys.F11 Then
>>                   If Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.None Then
>>                         Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.None
>>                        Me.WindowState = FormWindowState.Maximized
>>                  Else
>>                       Me.FormBorderStyle =
>> Windows.Forms.FormBorderStyle.Sizable
>>                      Me.WindowState = FormWindowState.Normal
>>                  End If
>>
>>        End If
>>    End Sub
>>
>>
>>
>> "Richard" <rl***@gmx.de> wrote in message
>> news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>>> No.... :( ... My Form is supposed to take over the whole screen...
>>>
>>> So with other words... You will only see my Form and no Taskbar or any
>>> other program. They may run in the background.
>>>
>>> Thx a mil anyway
>>>
>>>
>>> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
>>> news:oYkbh.11272$7a2.151@trndny06...
>>>> Change the property 'Show In Taskbar' to False. (Hides it from showing
>>>> in
>>>> the taskbar)
>>>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>>>> position.)
>>>>
>>>> Is this what you need?
>>>>
>>>> --
>>>> --
>>>> Thiele Enterprises - The Power Is In Your Hands Now!
>>>> --
>>>> "Richard" <rl***@gmx.de> wrote in message
>>>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>>>> Dear All,
>>>>
>>>> Does someone have a clue as to how you can get a form to show show
>>>> itself
>>>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if
>>>> you
>>>> press F11?
>>>>
>>>> Really need a solution
>>>>
>>>> Regards
>>>>
>>>> Richard
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
30 Nov 2006 12:42 AM
Mudhead
If e.KeyData.ToString = "F4, Alt" Then
     e.Handled = True
End If


Show quoteHide quote
"Richard" <rl***@gmx.de> wrote in message
news:OkGIQNAFHHA.536@TK2MSFTNGP02.phx.gbl...
> Ok and now how to you cancel a key that was pressed?
>
> lets say he may not press ALT+F4
>
> "Richard" <rl***@gmx.de> wrote in message
> news:%23e90SAAFHHA.2356@TK2MSFTNGP06.phx.gbl...
>> Hi Mudhead.
>>
>> Nope :)
>>
>> If the argument is true then the form maximizes but it doesn't go over
>> the complete screen. Tell me, is it just me or does noboddy understand
>> me...
>>
>> Go into your Internet Explorer and press F11 and see what happens. Now
>> ....... I want the same.....
>>
>> Regs,
>>
>> Richard
>>
>>
>> "Mudhead" <noth***@yourhouse.com> wrote in message
>> news:eJl3I4$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>>> Something like this. Form Keypreview is set to true.
>>>
>>>
>>> Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As
>>> System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
>>>              If e.KeyData = Keys.F11 Then
>>>                   If Me.FormBorderStyle =
>>> Windows.Forms.FormBorderStyle.None Then
>>>                         Me.FormBorderStyle =
>>> Windows.Forms.FormBorderStyle.None
>>>                        Me.WindowState = FormWindowState.Maximized
>>>                  Else
>>>                       Me.FormBorderStyle =
>>> Windows.Forms.FormBorderStyle.Sizable
>>>                      Me.WindowState = FormWindowState.Normal
>>>                  End If
>>>
>>>        End If
>>>    End Sub
>>>
>>>
>>>
>>> "Richard" <rl***@gmx.de> wrote in message
>>> news:%23Ziq2m$EHHA.1248@TK2MSFTNGP02.phx.gbl...
>>>> No.... :( ... My Form is supposed to take over the whole screen...
>>>>
>>>> So with other words... You will only see my Form and no Taskbar or any
>>>> other program. They may run in the background.
>>>>
>>>> Thx a mil anyway
>>>>
>>>>
>>>> "Ryan S. Thiele" <mali***@verizon.net> wrote in message
>>>> news:oYkbh.11272$7a2.151@trndny06...
>>>>> Change the property 'Show In Taskbar' to False. (Hides it from showing
>>>>> in
>>>>> the taskbar)
>>>>> Change 'WindowState' to 'Maximized'. ( Will startup in the maximized
>>>>> position.)
>>>>>
>>>>> Is this what you need?
>>>>>
>>>>> --
>>>>> --
>>>>> Thiele Enterprises - The Power Is In Your Hands Now!
>>>>> --
>>>>> "Richard" <rl***@gmx.de> wrote in message
>>>>> news:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl...
>>>>> Dear All,
>>>>>
>>>>> Does someone have a clue as to how you can get a form to show show
>>>>> itself
>>>>> "Full Screen"? Without Taskbar just a Form. Like Internet Explore if
>>>>> you
>>>>> press F11?
>>>>>
>>>>> Really need a solution
>>>>>
>>>>> Regards
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
29 Nov 2006 10:12 PM
Lucian Wischik
"Richard" <rl***@gmx.de> wrote:
>So with other words... You will only see my Form and no Taskbar or any other
>program. They may run in the background.

I don't know what the most elegant VB-ish way is to do this. But the
following code works.

Public Class Form1

Private Declare Function SetWindowLong Lib "user32" Alias
"SetWindowLongA" (ByVal hwnd As IntPtr, ByVal id As Int32, ByVal style
As IntPtr) As IntPtr
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As
IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal x As Int32, ByVal y As
Int32, ByVal cx As Int32, ByVal cy As Int32, ByVal wFlags As UInt32)
As Int32

Dim OldStyle As Long
Dim OldBounds As Drawing.Rectangle

Private Sub GoFullScreen_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
  OldStyle = SetWindowLong(Me.Handle, -16, &H90000000)
  SetWindowPos(Me.Handle, -1, 0, 0, 0, 0, &H23)
  OldBounds = Me.Bounds
  Me.Bounds = My.Computer.Screen.Bounds
End Sub

Private Sub RestoreToWindow_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Button2.Click
  SetWindowLong(Me.Handle, -16, OldStyle)
  SetWindowPos(Me.Handle, -2, 0, 0, 0, 0, &H23)
  Me.Bounds = OldBounds
End Sub
End Class

--
Lucian
Author
29 Nov 2006 11:24 PM
Richard
Lucian.... Have a look at our discussions above... you will find a very
short example...works for me


Show quoteHide quote
"Lucian Wischik" <lu***@wischik.com> wrote in message
news:0d1sm21i892ipn0qdhdp864cen525ia47u@4ax.com...
> "Richard" <rl***@gmx.de> wrote:
>>So with other words... You will only see my Form and no Taskbar or any
>>other
>>program. They may run in the background.
>
> I don't know what the most elegant VB-ish way is to do this. But the
> following code works.
>
> Public Class Form1
>
> Private Declare Function SetWindowLong Lib "user32" Alias
> "SetWindowLongA" (ByVal hwnd As IntPtr, ByVal id As Int32, ByVal style
> As IntPtr) As IntPtr
> Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As
> IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal x As Int32, ByVal y As
> Int32, ByVal cx As Int32, ByVal cy As Int32, ByVal wFlags As UInt32)
> As Int32
>
> Dim OldStyle As Long
> Dim OldBounds As Drawing.Rectangle
>
> Private Sub GoFullScreen_Click(ByVal sender As System.Object, ByVal e
> As System.EventArgs) Handles Button1.Click
>  OldStyle = SetWindowLong(Me.Handle, -16, &H90000000)
>  SetWindowPos(Me.Handle, -1, 0, 0, 0, 0, &H23)
>  OldBounds = Me.Bounds
>  Me.Bounds = My.Computer.Screen.Bounds
> End Sub
>
> Private Sub RestoreToWindow_Click(ByVal sender As System.Object, ByVal
> e As System.EventArgs) Handles Button2.Click
>  SetWindowLong(Me.Handle, -16, OldStyle)
>  SetWindowPos(Me.Handle, -2, 0, 0, 0, 0, &H23)
>  Me.Bounds = OldBounds
> End Sub
> End Class
>
> --
> Lucian