Developer code samples

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

Search Value

  1. 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.

    4 Downloads | Updated 28/08/2018 | Tags , , , , ,
  1. 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.

    0 Downloads | Updated 28/08/2018 | Tags , ,
  1. How to create a WebRequest instance and return the response.

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

    1 Downloads | Updated 20/08/2018 | Tags , , , , ,
  1. 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. 

    0 Downloads | Updated 20/08/2018 | Tags , , , ,
  1. 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.

    3 Downloads | Updated 20/08/2018 | Tags , , , , , ,
  1. 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.

    0 Downloads | Updated 20/08/2018 | Tags , , , ,
  1. 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.

    0 Downloads | Updated 20/08/2018 | Tags , , , , ,
  1. .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

    12 Downloads | Updated 25/05/2018 | Tags , , , , , ,
  1. File Encryption and Decryption in Delphi

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

    20 Downloads | Updated 15/05/2018 | Tags , , , , ,
  1. .Net GZipStream - Compress/Decompress a String in Delphi

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

    4 Downloads | Updated 15/05/2018 | Tags , ,
  1. 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.

    16 Downloads | Updated 10/05/2018 | Tags , , , , ,
  1. 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.

    7 Downloads | Updated 10/05/2018 | Tags ,
  1. 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.

    7 Downloads | Updated 10/05/2018 | Tags , , , ,
  1. 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.

    7 Downloads | Updated 10/05/2018 | Tags , ,
  1. 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.


    6 Downloads | Updated 10/05/2018 | Tags , , , ,
  1. 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.

    5 Downloads | Updated 10/05/2018 | Tags ,
  1. 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.

    10 Downloads | Updated 10/05/2018 | Tags , ,
  1. 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.

    6 Downloads | Updated 10/05/2018 | Tags
  1. 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.

    5 Downloads | Updated 10/05/2018 | Tags ,
  1. How to Read From Fixed-width Text Files in Delphi

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

    3 Downloads | Updated 10/05/2018 | Tags
  1. How to read from Comma-Delimited Text Files in Delphi

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

    4 Downloads | Updated 10/05/2018 | Tags ,
  1. 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.

    4 Downloads | Updated 10/05/2018 | Tags , ,
  1. 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.

    9 Downloads | Updated 10/05/2018 | Tags , ,
  1. 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.

    6 Downloads | Updated 10/05/2018 | Tags , ,
  1. 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.

    7 Downloads | Updated 10/05/2018 | Tags , , ,
  1. 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

    11 Downloads | Updated 10/05/2018 | Tags ,
  1. 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.

    7 Downloads | Updated 09/05/2018 | Tags ,
  1. 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

    6 Downloads | Updated 09/05/2018 | Tags , , ,
  1. 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.

    2 Downloads | Updated 09/05/2018 | Tags , , ,
  1. How to delete file on FTP Server in Delphi

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

    2 Downloads | Updated 09/05/2018 | Tags ,
  1. 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.

    7 Downloads | Updated 09/05/2018 | Tags
  1. 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.

    3 Downloads | Updated 09/05/2018 | Tags , , , ,
  1. Create a Web Request instance and return the response

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

    4 Downloads | Updated 09/05/2018 | Tags , , ,
  1. How to read, add and update application settings in Delphi

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

    3 Downloads | Updated 09/05/2018 | Tags , ,
  1. 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.

    7 Downloads | Updated 09/05/2018 | Tags , , , , ,
  1. How to Check Network Connection Status in Delphi

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

    6 Downloads | Updated 09/05/2018 | Tags , ,
  1. 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

    2 Downloads | Updated 09/05/2018 | Tags
  1. 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.

    5 Downloads | Updated 09/05/2018 | Tags ,
  1. 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.

    8 Downloads | Updated 09/05/2018 | Tags ,
  1. 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.

    23 Downloads | Updated 07/04/2018 | Tags , , , , ,
  1. 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.

    8 Downloads | Updated 07/04/2018 | Tags , , ,
  1. 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).

    24 Downloads | Updated 07/04/2018 | Tags , , , , ,
  1. 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!

    18 Downloads | Updated 06/04/2018 | Tags