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

 

 

 

 

 

 

 

List IMAP Mailboxes

VB6 sample program to list IMAP mailboxes.

Private Sub Command1_Click()

    ' Create an object, connect to the IMAP server, and login
    Dim imap As New ChilkatImap
    imap.UnlockComponent "UnlockCode"
    imap.Connect "www.mymailserver.com"
    imap.Login "login", "password"
    
    ' Get the names of all the mailboxes.
    Dim mboxes As mailboxes
    Set mboxes = imap.ListMailboxes("", "*")
    
    For i = 0 To mboxes.Count - 1
        List1.AddItem mboxes.GetName(i)
    Next
    
    ' Disconnect from the IMAP server.
    imap.Disconnect
    
    
End Sub

 

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

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