|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Full ScreenDear 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 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 Does someone have a clue as to how you can get a form to show show itselfnews:eTAIyl%23EHHA.4432@TK2MSFTNGP03.phx.gbl... Dear All, "Full Screen"? Without Taskbar just a Form. Like Internet Explore if you press F11? Really need a solution Regards 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 > > > 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 >> >> >> > > 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 >>> >>> >>> >> >> > > 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 >>>> >>>> >>>> >>> >>> >> >> > > 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 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 >>> >>> >>> >> >> > > 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 >>>> >>>> >>>> >>> >>> >> >> > > 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 >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > "Richard" <rl***@gmx.de> wrote: I don't know what the most elegant VB-ish way is to do this. But the>So with other words... You will only see my Form and no Taskbar or any other >program. They may run in the background. 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 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
connect vb app to sql 2005 express
How do you translate your WinForms app? (outsourcing localization) how to make cookies into an array? edit text in file using streamreader and string.replace Can't Figure Out why this array is out of bounds now! Looking for a simple explanation of how to walk through a dataset in .net 2.0 Logic Troubles - reading in a difficult textfile Its Urgent: I have export database into excel file if office not installed then it gives me error problem with join() Convert today's date and time to a long |
|||||||||||||||||||||||