Visual Basic Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Visual Basic Example Source to Save Web Page to MHT

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

 

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