Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake copy, cut, and paste menus for a WebBrowser control
KeywordsWebBrowser, menu, copy, cut, paste
CategoriesUtilities, Controls, Internet
 
Place a WebBrowser cotrol on the form. Use the WebBrowser's ExecWB method to implement the copy, cut, and paste functions.
 
Private Sub mnuFileCopy_Click()
    WebBrowser1.ExecWB OLECMDID_COPY, _
        OLECMDEXECOPT_DODEFAULT
End Sub

Private Sub mnuFileCut_Click()
    WebBrowser1.ExecWB OLECMDID_CUT, OLECMDEXECOPT_DODEFAULT
End Sub

Private Sub mnuFilePaste_Click()
    WebBrowser1.ExecWB OLECMDID_PASTE, _
        OLECMDEXECOPT_DODEFAULT
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated