|
-
Feb 1st, 2001, 08:36 PM
#1
Thread Starter
New Member
how to open an html file with IE or Netscape of fullscrean
-
Feb 1st, 2001, 10:09 PM
#2
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
-
Feb 1st, 2001, 11:05 PM
#3
Thread Starter
New Member
thank you
but it's not FullScrean...
if we are using IE5 and press F11 key
then it would be FullScrean
-
Feb 1st, 2001, 11:51 PM
#4
After the ShellExecute line, add this:
Code:
ShellExecute Me.hwnd, vbNullString, "C:\htmfile.htm", _
vbNullString, "c:\", SW_SHOWMAXIMIZED
DoEvents
SendKeys "{F11}", True
-
Feb 2nd, 2001, 02:31 AM
#5
Thread Starter
New Member
but if we use Netscape
we can't sendkey F11..
have threr general solution
we must not to know opened with IE or Netscape...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|