Developer code samples

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

Search Value

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

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

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

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

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

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

    2 Downloads | Updated 20/08/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.

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

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


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

    10 Downloads | Updated 10/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.

    8 Downloads | Updated 09/05/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.

    15 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).

    34 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!

    23 Downloads | Updated 06/04/2018 | Tags