By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,737 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,737 IT Pros & Developers. It's quick & easy.

full screen?

P: n/a
hi, is there anyway i can make my windows form to be full screen? thanks
Nov 21 '05 #1
Share this Question
Share on Google+
15 Replies

P: n/a

ad this line to your forms load event "Width =
Screen.PrimaryScreen.WorkingArea.Width : Height =
Screen.PrimaryScreen.WorkingArea.Height : Left = 0 : Top = 0"
so it look slike this
Private Sub FormMain_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Width = Screen.PrimaryScreen.WorkingArea.Width : Height =
Screen.PrimaryScreen.WorkingArea.Height : Left = 0 : Top = 0

End Sub
regards

Michel Posseth [MCP]

"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
hi, is there anyway i can make my windows form to be full screen? thanks

Nov 21 '05 #2

P: n/a
that didnt work, theres still the batr at the top and the start bar, all it
did was the same as maximizing it
Nov 21 '05 #3

P: n/a
is there anyway of making the start menu and taskbar disappear and having it
just be the form?
Nov 21 '05 #4

P: n/a
euhh well

i guess we misunderstood ,,,,, i thought you just wanted to make the form as
big as the working area
what you really want is covering the taskbar ,,,, well i did this once in
VB6 ,,, but it was more sort of a hack

this piece of code will make your form as big as the screens resolution

Width = Screen.GetBounds(Me).Width

Height = Screen.GetBounds(Me).Height

Left = 0 : Top = 0

note that you cannot use the above code in the load event ( you must trigger
it with a delay, or under a button )

now you can do 2 things

1 as your user to put the auto hide option on off the taskbar ( right mouse
on taskbar , properties , and then "auto hide" on

2 you force the hiding of the taskbar however i just tried all the code that
is availlable and on my Windows server 2003 64 Bit these codes do not work

also before you do this read this
http://blogs.msdn.com/oldnewthing/ar...05/414910.aspx

this copmpletely reflects my opinion regarding this

"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...
is there anyway of making the start menu and taskbar disappear and having
it
just be the form?

Nov 21 '05 #5

P: n/a
so wait, that just got me more confused, is there a way to do it or not?
Nov 21 '05 #6

P: n/a
hmmmm well

i just discovered something strange

i tried my VB6 code and with VB6 it does work on my computer ,,,,, only for
some strange reasson with VB.Net it doesn`t ,,,,,,, and i tried code that is
availlable on the web and my own strange strange
this is interesting ,,, i need some sleep ,, i will see tomorow if i can fix
this

regards

Michel Posseth [MCP]

"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
so wait, that just got me more confused, is there a way to do it or not?

Nov 21 '05 #7

P: n/a
ive been looking on google for the past hour and i cant find any workable
code that will hide the task bar and make something full screen....if anyone
can help with this it would b awsome
Nov 21 '05 #8

P: n/a
hi, isnt that VB6 code? and if so,how can i impliment that into VB.net? and
if i cant, is there even any wa to do it in VB.net? thanks
Nov 21 '05 #9

P: n/a
huhhh ???

Well it is writen in VB.Net 2003 ( should also work in the 2000 version )
and i do not see anything VB6 about it ,,, even better this code will not
run in VB6

have you never seen API`s used in .Net ??? ,,, cause this might have
confused you
however .... if you read ths newsgroup with a outloook express like program
you might have seen the atachment ( zip compressed ) this contains a working
project
also in the message i have pasted the functional code ,,,, you can copy and
paste it in your project ,, however be carefull with the API headers keep
them inine with the methods otherwise you will see the belu waves indicating
that something is not declared ,, this is just a mather of lining the code
with the header

regards

Michel Posseth [MCP]
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
hi, isnt that VB6 code? and if so,how can i impliment that into VB.net?
and
if i cant, is there even any wa to do it in VB.net? thanks

Nov 21 '05 #10

P: n/a
yea, this is my first time with API, but im getting errors on the "DLLimport"
statement
Nov 21 '05 #11

P: n/a
yep i expected that ,,, that is because of the lining with the function call
probably will this be solved with a backspace at the end
the _ is a continuation symbol

"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
yea, this is my first time with API, but im getting errors on the
"DLLimport"
statement

Nov 21 '05 #12

P: n/a
yea, thanks that did it but now i tried it and had it call
"Showtaskbar(false)" in form load and it didnt work...what am i doing wrong?
and also, could i make this code be in a module or separate class so i can
call it from all of my forms? thanks
Nov 21 '05 #13

P: n/a
nvrmnd about the not working part, but could i put this in a module? and if
so would i need to change anything?
Nov 21 '05 #14

P: n/a
nvrmnd about the not working part, but could i put this in a module to use on
all my forms? and if so would i need to change anything?
Nov 21 '05 #15

P: n/a
also, i put a menu bar on my form and after i did that, it wouldntn show the
menu bar and would show the title bar of the window under my program
Nov 21 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.