Solved

How to create a fullscreen application in VB.NET

Posted on 2004-09-23
10
878 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - KeyPress Event 4 38
i have to take the screenshot of command prompt? how to do this? 1 45
Help with error in Query 2 31
How to repeat the data 4 18
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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