Solved

How to create a fullscreen application in VB.NET

Posted on 2004-09-23
10
860 Views
Last Modified: 2012-06-21
Hi ya all,
I'm trying to build my own webbrowser in VB.NET. most of that is pretty easy .. i'm just using the standard webbrowser controls.
But now i also want to add a Fullscreen option , just like when you press F11 in internet explorer. I've tried all kinds of code that i found on the net , but i cant get it to work.
Anyone here who has a function which i can add behind my 'Fullscreen' button?
Greetz, Tys
0
Comment
Question by:Tyzer
  • 3
  • 2
  • 2
10 Comments
 
LVL 4

Accepted Solution

by:
jrandallsexton earned 63 total points
ID: 12134815
You could handle the keypress event for the form, determine if it was f11 and then do something like

me.windowstate = windowstate.maximized --> this makes it go fullscreen
me.formborderstyle = formborderstyle.none --> this would strip away any borders of the form (if that's what you want to do)
0
 
LVL 27

Assisted Solution

by:planocz
planocz earned 62 total points
ID: 12134894
jrandallsexton  has the right idea...


You could handle the keypress event for the form, determine if it was f11 and then do something like

then  at the F11 key .....

AxWebBrowser1.Fullscreen
0
 
LVL 3

Author Comment

by:Tyzer
ID: 12140957
Yow, the first answer helped me quite a bit.. i've almost got a fullscreen browser now . . the only thing is.. a big , gray taskbar-like bar at the bottom of my screen. it looks like a clean taskbar, without any buttons or time or icons .. but it doesn't function like one.. anyone knows what this is , and how to get rid of it.. and make my application window a little bit 'more fullscreen' ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:jrandallsexton
ID: 12142033
Ehh....I don't really know what it is.  Could it be your control?  Hard for me to say without a screenshot.

Anyone else have any ideas?
0
 
LVL 3

Author Comment

by:Tyzer
ID: 12169156
If you drop a AxWebBrowser on a form, and add the following code to the form_onload , you see what i mean..

Me.WindowState = WindowState.Maximized
Me.FormBorderStyle = FormBorderStyle.None
AxWebBrowser1.FullScreen = True
0
 
LVL 4

Expert Comment

by:jrandallsexton
ID: 12169640
Tyzer:

I don't see that control in .Net or COM components available.

What is the full name of the reference?
0
 
LVL 27

Expert Comment

by:planocz
ID: 12170265



Imports InetCtlsObjects

Microsoft Internet Transfer Control 6.0 (SP4)  <----- THE DLL
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now