Solved

How to create a fullscreen application in VB.NET

Posted on 2004-09-23
10
871 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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