Solved

How to create a fullscreen application in VB.NET

Posted on 2004-09-23
10
850 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

21 Experts available now in Live!

Get 1:1 Help Now