473,414 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 2501
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
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
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
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
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
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
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
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
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
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
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.