Results 1 to 5 of 5

Thread: FullScrean

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3

    Talking

    how to open an html file with IE or Netscape of fullscrean

  2. #2
    Guest
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3

    Talking

    thank you
    but it's not FullScrean...
    if we are using IE5 and press F11 key
    then it would be FullScrean

  4. #4
    Guest
    After the ShellExecute line, add this:


    Code:
    ShellExecute Me.hwnd, vbNullString, "C:\htmfile.htm", _
    vbNullString, "c:\", SW_SHOWMAXIMIZED
    DoEvents
    SendKeys "{F11}", True

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    3

    Talking

    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
  •  



Click Here to Expand Forum to Full Width