Developer code samples

Download code samples and demo applications for windows and other products which uses the .Net Runtime Library for Delphi.



Search Value

How to Run SSRS Reports Locally

This demo demonstrates how to generate a report that was created in rdl format, from a Delphi application without using SSRS server.

37 Downloads | Updated 24/02/2019 | Tags ,

Use regular expression to check whether a string is a currency or not.

The demo illustrates the use of a regular expression to check whether a string either represents a currency value or has the correct format to represent a currency value.

63 Downloads | Updated 28/08/2018 | Tags , , , , ,

Use a regular expression to check for repeated occurrences of words in a string

The demo uses a regular expression to check for repeated occurrences of words in a string using .Net class "Regex" in Delphi.

43 Downloads | Updated 28/08/2018 | Tags , ,

How to create a WebRequest instance and return the response.

The following demo shows how to create a WebRequest instance and return the response.

95 Downloads | Updated 20/08/2018 | Tags , , , , ,

How to compute the MD5 hash value of a string and returns the hash as a 32-character, hexadecimal-formatted string

The following demo computes the MD5 hash value of a string and returns the hash as a 32-character, hexadecimal-formatted string. 

53 Downloads | Updated 20/08/2018 | Tags , , , ,

Send data to and receive data from a resource identified by a URI

The demo example takes the URI of a resource, retrieves it, and displays the response using .Net WebClient.

61 Downloads | Updated 20/08/2018 | Tags , , , , , ,

Use ECDsaCng to sign a message and use the signature to verify that the message has not been altered.

The demo shows how to use the ECDsaCng class to sign a message and how to use the signature to verify that the message has not been altered.

23 Downloads | Updated 20/08/2018 | Tags , , , ,

Computes a Hash-based Message Authentication Code (HMAC) by using the MD5 hash function.

The demo shows how to sign a file by using the HMACMD5 object and then how to verify the file.

24 Downloads | Updated 20/08/2018 | Tags , , , , ,

.Net Web Browser Control in Delphi

How to create your own web browser(starter) with the .Net Web Browser Control in Delphi using the .Net Runtime Library for Delphi

116 Downloads | Updated 25/05/2018 | Tags , , , , , ,

File Encryption and Decryption in Delphi

Demonstrates how to encrypt and decrypt any file type in Delphi using the .Net Runtime Library for Delphi.

125 Downloads | Updated 15/05/2018 | Tags , , , , ,

.Net GZipStream - Compress/Decompress a String in Delphi

This demo demonstates how to use .Net GZipStream to compress and decompress string in Delphi.

50 Downloads | Updated 15/05/2018 | Tags , ,

Host WPF Composite Control in Delphi VCL Forms

This demo demonstrates how to host WPF Composite Control packaged into a .Net library in Delphi using the .Net Runtime Library for Delphi TClrContainer component.

174 Downloads | Updated 10/05/2018 | Tags , , , , ,

How to use the .Net FileWebRequest to access a file system resource in Delphi

This demo demonstrates how to use the .Net FileWebRequest class to access a file system resource in Delphi using the .Net Runtime Library for Delphi.

23 Downloads | Updated 10/05/2018 | Tags ,

How to send an e-mail message asynchronously using .Net SmtpClient in Delphi

The demo how to send an e-mail message asynchronously with the .Net SmtpClient in Delphi using the .Net Runtime Library for Delphi.

71 Downloads | Updated 10/05/2018 | Tags , , , ,

How to Encrypt/Decrypt a message using the .Net CreateEncryptor in Delphi

This demo shows how to use the .Net CreateEncryptor method to encrypt and decrypt a message in Delphi using the .Net runtime library for Delphi.

37 Downloads | Updated 10/05/2018 | Tags , ,

How to use .Net Reflection to Open and Close SqlConnection in Delphi

This demo shows how to use .Net reflection in Delphi to load System.Data assembly, load and create instance of SqlConnection type, set the connectionString property of the SqlConnection and invoke the open and close method of the SqlConnection instance.


49 Downloads | Updated 10/05/2018 | Tags , , , ,

How to Upload a File to a network in Delphi

The demo shows how to upload a file to the network and also show the progress of the upload operation in Delphi using the .Net Runtime Library for Delphi.

45 Downloads | Updated 10/05/2018 | Tags ,

How to Send Strings to Serial Ports in Delphi

This demo shows how to use Computer.Ports interface to send strings to the computer's serial ports in Delphi using the .Net Runtime Library for Delphi.

64 Downloads | Updated 10/05/2018 | Tags , ,

How to receive Strings From Serial Ports in Delphi

This demo shows how to use Computer.Ports interface to receive strings from the computer's serial ports in Delphi using .Net Runtime Library for Delphi.

35 Downloads | Updated 10/05/2018 | Tags

How to Read From Text Files with Multiple Formats

The demo demonstrates how to parse a text file named testfile.txt with multiple formats in Delphi using .Net Runtime Library for Delphi.

35 Downloads | Updated 10/05/2018 | Tags ,

How to Read From Fixed-width Text Files in Delphi

The demo shows how to open and read Fixed-width log file (test.log).

21 Downloads | Updated 10/05/2018 | Tags

How to read from Comma-Delimited Text Files in Delphi

The demo shows how to read from a Comma-Delimited Text File.

33 Downloads | Updated 10/05/2018 | Tags ,

How to download a File from the Network in Delphi

The demo shows how a file can be downloaded from the network with or without supplying a user name and password using the .Net Runtime Library for Delphi.

42 Downloads | Updated 10/05/2018 | Tags , ,

Handle and raise .Net events in Delphi (Standard)

This demo shows how to raise .Net events and handle these events from Delphi using the .Net Runtime Library for Delphi.

67 Downloads | Updated 10/05/2018 | Tags , ,

Handle and raise .Net events in Delphi (Advanced)

This demo shows how to raise .Net events and handle these events from Delphi using the .Net Runtime Library for Delphi.

59 Downloads | Updated 10/05/2018 | Tags , ,

How to Display Computer information in Delphi

This demo shows how to use the Computer interface object to display the computer information such as the name of the computer, the local time, the GMT time, the total physical memory, the OS Fullname, OS Version etc on which the code runs.

47 Downloads | Updated 10/05/2018 | Tags , , ,

How to add, remove, and insert data in .Net generic List in Delphi.

This demo demonstrates how you can add, remove and insert data in .Net generic List in Delphi using the .Net Runtime Library for Delphi

55 Downloads | Updated 10/05/2018 | Tags ,

How to use .Net Generic Dictionary in Delphi

The demo shows how to use .Net Generic Dictionary in Delphi to add data, remove data and enumerate though the data stored in the generic dictionary.

65 Downloads | Updated 09/05/2018 | Tags ,

Show synchronous consumption of system events in Delphi

The demo shows how to show synchronous consumption of events in Delphi using the .Net Runtime Library for Delphi

29 Downloads | Updated 09/05/2018 | Tags , , ,

How to get attributes of a file and directory in Delphi

This demo shows how to get attributes of a file and directory in Delphi using the GetAttr function in the .Net Runtime Library for Delphi.

31 Downloads | Updated 09/05/2018 | Tags , , ,

How to delete file on FTP Server in Delphi

The demo demonstrates deleting a file from an FTP server in Delphi.

35 Downloads | Updated 09/05/2018 | Tags ,

How to use .Net DataTable in Delphi

This demo shows you how to use the .Net DataTable to store data in Delphi using the .Net Runtime Library for Delphi.

46 Downloads | Updated 09/05/2018 | Tags

How to host .Net DataGridView Controls in Delphi

This demo shows how to host DataGridView control, load data from a dataset and display the data in the datagridview.

65 Downloads | Updated 09/05/2018 | Tags , , , ,

Create a Web Request instance and return the response

The demo shows how to create a WebRequest instance and return the response

25 Downloads | Updated 09/05/2018 | Tags , , ,

How to read, add and update application settings in Delphi

The demo shows how to read, add and update application settings in Delphi

27 Downloads | Updated 09/05/2018 | Tags , ,

How to use different .Net Collection types in Delphi

This demo shows how you can use .Net Collection types such as StringCollection, Stack, Queue, Hashtable, SortedList etc in Delphi.

58 Downloads | Updated 09/05/2018 | Tags , , , , ,

How to Check Network Connection Status in Delphi

The demo shows how to check whether a computer has a working network connection.

268 Downloads | Updated 09/05/2018 | Tags , ,

Convert between types using TypeDescriptor in Delphi

This demo shows how you can convert between types with TypeDescriptor interface in Delphi using the .Net Runtime Library for Delphi

36 Downloads | Updated 09/05/2018 | Tags

How to use .Net ArrayList in Delphi

Using the .Net Runtime Library for Delphi, you can create and initialize .Net ArrayList in Delphi and display the content of the arraylist.

32 Downloads | Updated 09/05/2018 | Tags ,

How to use .Net Array in Delphi

Using the .Net Runtime Library for Delphi, you can create and initialize .Net array of any type in Delphi and display the content of the array.

47 Downloads | Updated 09/05/2018 | Tags ,

How to create Instance of .Net Objects

In order to interact with .Net Objects's methods, properties, Fields and events, you need to create an instance of the object. There are several ways to Create an Instance of a .Net Object in Delphi using the .Net Runtime Library for Delphi.

194 Downloads | Updated 07/04/2018 | Tags , , , , ,

How to obtain Type and Member Information from an Assembly

The CNClrLib.Host and CNClrLib.Core units contain many methods for obtaining information from an assembly. This section demonstrates one of these methods.

70 Downloads | Updated 07/04/2018 | Tags , , ,

How to load .Net Assemblies from Delphi

There are several ways to load an assembly into an application domain using the .Net Runtime Library for Delphi. The recommended way is to use the static Load method of the TClrAssembly class (Declared in CNClrLib.Host unit).

237 Downloads | Updated 07/04/2018 | Tags , , , , ,

Hello World -- My First Program

The following segment of codes create a Delphi version of the traditional "Hello World!" program using the .Net Runtime Library for Delphi. The program displays the string Hello World!

71 Downloads | Updated 06/04/2018 | Tags