Never Try to Handle Binary Data as a String
This issue comes up frequently, and hopefully this C# and VB.NET example will help people to understand what not to do.. Here’s the C# example (the VB.NET example is further below..) VB.NET Example:
This issue comes up frequently, and hopefully this C# and VB.NET example will help people to understand what not to do.. Here’s the C# example (the VB.NET example is further below..) VB.NET Example:
Demonstrates a TaskCompleted event for an asynchronous Chilkat method call. The event callback occurs in the background thread, and therefore any updates to the UI must happen on the UI thread. For this reason, MethodInvoker is used to make updates to a TextBox..
When programming in VB.NET or VB6, be careful that you are looking at the correct online examples. VB6 examples are located here. whereas VB.NET examples are located here. In VB6, it is the Chilkat ActiveX that is used, and return values (in general) are 1 for success and 0 for …
Dim “WithEvents” Dim WithEvents ftp As Chilkat.Ftp2 Add some code to create a new instance of the object. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ftp = New Chilkat.Ftp2() ftp.EnableEvents = True ftp.HeartbeatMs = 100 … Select the “ftp” object. Select the event. This causes …
Question: In your examples online, we have noticed that .Dispose() is never called after using Chilkat classes (we are writing in C#). Is calling .Dispose() recommended? Does your code not need to destroy any native resources or handles that would normally be cleaned up in the Dispose method (the IDisposeable …
The following VB.NET code copies the contents of the nutrition.xml file (found in xml1.zip) to another pre-existing .zip named xml2.zip: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim zip1 As New Chilkat.Zip Dim success As Boolean success = zip1.UnlockComponent(“Anything for 30-day trial”) success = zip1.OpenZip(“xml1.zip”) …
Here is an example: Dim WithEvents http As Chilkat.Http Private Sub http_OnPercentDone(ByVal sender As Object, ByVal args As Chilkat.PercentDoneEventArgs) Handles http.OnPercentDone ProgressBar1.Value = args.PercentDone End Sub Private Sub HttpDownloadTest() http = New Chilkat.Http() Dim success As Boolean ‘ Any string unlocks the component for the 1st 30-days. success = http.UnlockComponent(“Anything …