CodeItBetter Programming Another VB Programming Blog

How to make all opened Internet Explorer windows to Full screen mode

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'Internet - How to make all opened Internet Explorer windows to Full screen mode
Sub MakeIEwindowsToFullScreen(Optional ByVal bFullScreen As Boolean = True)
    'Add reference to Microsoft Internet Controls and to Microsoft Shell Controls and Automation.
    Dim oShell As Shell
    Dim oIE As InternetExplorer
    Dim oExplorer As ShellFolderView
    Dim obj As Object
 
    Set oShell = New Shell
    For Each obj In oShell.Windows
        If TypeName(obj.Document) = "HTMLDocument" Then
        'It is an Internet Explorer window
            Set oIE = obj
            oIE.FullScreen = bFullScreen
        Else
        'It is an Windows Explorer window
        'Nothing to do here.
        End If
    Next obj
End Sub
 
'How can I call this function:
'To set all opened IE windows to Full Screen
'Call MakeIEwindowsToFullScreen(True)
'To restore all opened IE windows from Full Screen
'Call MakeIEwindowsToFullScreen(False)
Filed under: Internet Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.