473,499 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Full Screen

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
Nov 29 '06 #1
11 2503
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.dewrote in message
news:eT****************@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

Nov 29 '06 #2
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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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

Nov 29 '06 #3
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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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


Nov 29 '06 #4
Oops...
If e.KeyData = Keys.F11 Then
If Me.FormBorderStyle <Windows.Forms.FormBorderStyle.None Then
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
etc..

"Mudhead" <no*****@yourhouse.comwrote in message
news:eJ**************@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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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



Nov 29 '06 #5
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" <no*****@yourhouse.comwrote in message
news:eJ**************@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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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



Nov 29 '06 #6
Yeeeeeeeeeeeeeeeeeeeeeeeeeesssssssssssssssssssssss sssssssssssss.....

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

Thanks a mil

Richard

"Mudhead" <no*****@yourhouse.comwrote in message
news:ua**************@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" <no*****@yourhouse.comwrote in message
news:eJ**************@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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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





Nov 29 '06 #7
"Richard" <rl***@gmx.dewrote:
>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
Nov 29 '06 #8
Ok and now how to you cancel a key that was pressed?

lets say he may not press ALT+F4

"Richard" <rl***@gmx.dewrote in message
news:%2****************@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" <no*****@yourhouse.comwrote in message
news:eJ**************@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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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





Nov 29 '06 #9
Lucian.... Have a look at our discussions above... you will find a very
short example...works for me
"Lucian Wischik" <lu***@wischik.comwrote in message
news:0d********************************@4ax.com...
"Richard" <rl***@gmx.dewrote:
>>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

Nov 29 '06 #10
If e.KeyData.ToString = "F4, Alt" Then
e.Handled = True
End If
"Richard" <rl***@gmx.dewrote in message
news:Ok*************@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.dewrote in message
news:%2****************@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" <no*****@yourhouse.comwrote in message
news:eJ**************@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.dewrote in message
news:%2****************@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" <ma*****@verizon.netwrote 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.dewrote in message
news:eT****************@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
>
>
>




Nov 30 '06 #11
Umm press the "windows" key :P
Richard wrote:
Yeeeeeeeeeeeeeeeeeeeeeeeeeesssssssssssssssssssssss sssssssssssss.....

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
Nov 30 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4370
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: ...
9
12276
by: pow67 | last post by:
Is there a javascript statement which can be incorporated in a hyperlink which will open a new page that fills the screen while leaving the page with the link open? Thanks in advance. CW
1
3640
by: Nick Weekes | last post by:
Hi all, Is there any javascript function/s that will tell me if the current browser window is in full screen mode or not? I don't want to resize the window, just size content based on full...
3
1954
by: Pat Sheen | last post by:
Is there some setting in Access so when I get help it will display full screen and not part screen with my Access window. I've Googled and checked help but can't find anything. Thanks Pat
6
5591
by: Tony Liu | last post by:
Hi, when switched to the full screen mode in VS.NET IDE, is there any way to hide the main menu bar? Thanks Tony
6
7550
by: Nicky | last post by:
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window...
9
3086
by: Jensen bredal | last post by:
Is there any way i can view my web page in full screen mode? F11 still hhas the internet explorer tool bar. Many thanks in advance JB
0
2177
by: Franklin M. Gauer III | last post by:
Hi, We have an application running that uses FULL SCREEN ANCHORING in Windows Forms. The application runs fine on all of our desktops and some laptops. We are having problems with certain Dell...
9
2388
by: EreN | last post by:
Hi! Im new in this group so i dont know if that topic has been opened before.. I want to ask that how can i make my console program open in full screen mode? Thanx...
7
3092
by: MC felon | last post by:
i worked and compiled programs in code::blocks. These .exe's do not have full screen modes in them! how do i get them to work full screen?even properties of these exe's do not have full screen...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.