Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

Visual Basic 6.0 Web API Examples

Primary Categories

ABN AMRO
AWS Secrets Manager
AWS Security Token Service
AWS Translate
Activix CRM
Adyen
Alibaba Cloud OSS
Amazon Cognito
Amazon DynamoDB
Amazon MWS
Amazon Pay
Amazon Rekognition
Amazon SP-API
Amazon Voice ID
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Backblaze S3
Banco Inter
Belgian eHealth Platform
Bitfinex v2 REST
Bluzone
BrickLink
Bunny CDN
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
Duo Auth MFA
ETrade
Ecwid
Egypt ITIDA
Egypt eReceipt
Etsy
Facebook
Faire
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Google Translate
Google Vision
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
JCC Cyprus
Jira
Lightspeed
MYOB
Magento
Mailgun
Malaysia MyInvois

Mastercard
MedTunnel
MercadoLibre
MessageMedia
Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Moody's
Okta OAuth/OIDC
OneLogin OIDC
OneNote
OpenAI ChatGPT
PRODA
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Refinitiv
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
Salesforce
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
TikTok Shop
Trello
Twilio
Twitter API v2
Twitter v1
UPS
UniPin
VoiceBase
Vonage
WaTrend
Walmart v3
Wasabi
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yahoo Mail
Yapily
Yousign
ZATCA
Zendesk
Zoom
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

Chilkat Visual Basic 6.0 Examples

Click on a category in the left rail to browse Visual Basic 6.0 examples.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

Using ActiveX Components in Visual Basic 6.0

To use an ActiveX component in VB 6.0, you must first add a reference to the component from within your VB6 project.

To add a "Reference", select Project --> References... from the VB6 IDE and check the checkbox for the component to be referenced, as shown below:

Then select the component to be referenced:

Creating the ActiveX Component Dynamically at Runtime

To instantiate a new instance of an ActiveX component, use the "New" keyword, as shown in the code fragment below:

      ' Dim as New:
      Dim ftp As New ChilkatFtp2
      
      ' Alternatively, Dim and instantiate later:
      Dim x as ChilkatFtp2
      Set x = New ChilkatFtp2
      

Dim an ActiveX Component with Events

If your applications intends to process event callbacks fired by an ActiveX, the component must be declared "WithEvents", as shown below:

  	' Note: The WithEvents can only appear in the declaration
  	' section of a module, and cannot be local to a procedure.
  	' Also, it cannot be used with the "New" keyword.
  	' The object creation must occur in a separate step, typically
  	' in the Form load.
  	Dim WithEvents ftp As ChilkatFtp2

  	Private Sub Form_Load()
  	    Set ftp = New ChilkatFtp2
  	End Sub
  	

Adding an ActiveX Event Callback Function in Visual Basic 6.0

Wiring the ActiveX for events is easy. First, display the "Code View" in the VB6 IDE and select the object you previously declared "WithEvents", as shown below:

Next, select the event:

Visual Basic will automatically generate the event procedure for you. For example:

  	Private Sub ftp_AbortCheck(abort As Long)

  	End Sub

  	

Notice that the procedure names follow a pattern: VARNAME_EVENTNAME. This is important. If the name of the procedure is not correct, it will not be called.

 

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