Click to See Complete Forum and Search --> : FullScrean
honey0
Feb 1st, 2001, 07:36 PM
how to open an html file with IE or Netscape of fullscrean
Use the ShellExecute API function.
Private Declare Function ShellExecute _
Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As _
Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Private Const SW_ShowMinimized = 2
Private Const SW_SHOWMAXIMIZED = 3
Usage
ShellExecute Me.hwnd, vbNullString, "C:\htmfile.htm", _
vbNullString, "c:\", SW_SHOWMAXIMIZED
honey0
Feb 1st, 2001, 10:05 PM
thank you
but it's not FullScrean...
if we are using IE5 and press F11 key
then it would be FullScrean
After the ShellExecute line, add this:
ShellExecute Me.hwnd, vbNullString, "C:\htmfile.htm", _
vbNullString, "c:\", SW_SHOWMAXIMIZED
DoEvents
SendKeys "{F11}", True
honey0
Feb 2nd, 2001, 01:31 AM
but if we use Netscape
we can't sendkey F11..
have threr general solution
we must not to know opened with IE or Netscape...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.