how to open an html file with IE or Netscape of fullscrean
Printable View
how to open an html file with IE or Netscape of fullscrean
Use the ShellExecute API function.
Code: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
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:
Code:ShellExecute Me.hwnd, vbNullString, "C:\htmfile.htm", _
vbNullString, "c:\", SW_SHOWMAXIMIZED
DoEvents
SendKeys "{F11}", True
but if we use Netscape
we can't sendkey F11..
have threr general solution
we must not to know opened with IE or Netscape...