Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VB Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor


VB Strings
VB Byte Array

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

Visual Basic Example Source to Save Web Page to MHT

Download Visual Basic Project Files and Source Code

This Visual Basic example program saves a Web Page to an MHT file that contains all HTML, frames, style sheets, images, etc.

' Visual Basic example program to save a Web page to an MHT file.
Private Sub Command1_Click()

    Dim mht As New ChilkatMHT
    Label1.Caption = "Please wait..."
    Label1.Refresh
    
    mht.UnlockComponent "UnlockCode"
    
    success = mht.GetAndSaveMHT("http://www.yahoo.com/", "yahoo.mht")

    mht.SaveLastError "log.xml"
    
    Label1.Caption = "Finished, check log.xml for errors."
    Label1.Refresh
    
End Sub

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.