User Tools

Site Tools


clarion_net_shipping_examples.htm
Navigation:  Clarion.Net (Clarion#) > Clarion# Language Extensions > Examples and Other Resources >====== Clarion.NET Shipping Examples ====== Previous pageReturn to chapter overviewNext page

There are many samples included in Clarion.NET. This topic provides a quick overview of each one.

ADONetEx

This example is a Clarion.NET console application that demonstrates how to attach to any ADO.NET data source. ADO.NET is the fundamental platform for ASP.NET applications.

BlobBinaryToImage

This example shows the technique of reading a BLOB binary image and displaying it in a .NET PictureBox control. The image is contained in a BLOB that is stored in a TopSpeed table.

CFDemo

Our first example showing a Compact Framework application. This examples uses XML files for its data storage.

DataBind-Files-Records

This program demonstrates techniques for data binding to a Clarion FILE and RECORD respectively. The example shows how to use Data Binding with a Topspeed file defined in the application. The example uses the .NET 2.0 BindingSource and BindingNavigator controls. It also shows how easy it is with BindingSource to data bind a textbox control to a field in a record structure.

DataBind-Queue

This example shows that a Queue supports data binding. The queue is loaded with data from a Topspeed table, and that queue is used as the datasource of a .NET Datagrid control. That same datasource is also used by the ComboBox control, and the DataMember of that ComboBox is using the LastName field of the queue. Drop the ComboBox and select a name watch what happens. It also shows the new .NET 2.0 DataGridView control used with a datasource that uses the “people” TPS file.

DockingWindows

This example shows how to link in a custom assembly and override the default WinForms System.Forms namespace (uses the WeinfenLuo.WinFormsUI.Docking DLL). And demonstrates that the docking features found in the Clarion.NET IDE can be used in your own programs. You can create tabbed MDI windows that can be moved around in the same way as you use them in the Clarion .NET IDE.

DragandDropImage

Drag and Drop an Image to a location in a target window. The Drag and Drop implementation in .NET is a bit different from your Win32 applications. It shows how to use the DoDragDrop method, and the DragEnter and DragDrop events.

DragandDropText

The same technique for images is applied to simple text data here. This second example involves 2 list boxes. It shows how to use the DragDrop, DragOver, MouseUp, MouseMove and MouseDown events to perform the action of transferring data from one list box to the other.

ForEachQueue

This example is a console application that demonstrates the use of the new Clarion# FOREACH language statement using a QUEUE.

GlassButtons

This example shows the new SoftVelocity Clarion.Windows.Forms.GlassButton control. Several buttons are displayed each showing different settings for multiple effects.

ListControlTotallingTree

Another two-in-one example! The first tab shows you a Tree view and how to manipulate column headers of the new Clarion.NET LIST control. The second tab illustrates dynamic totalling of values in the LIST.

MDI-Dgv

This example demonstrates using TYPEd Files in Clarion.NET. Using TYPE, each thread can have a separate copy of the data buffer for a given table. This sample uses a DataGridView control.

MixedLanguages

Mixing multiple languages in a Clarion.NET solution is demonstrated here. You will see an example on how to call into a C# assembly from Clarion#, and vice versa!

NoteBox.jpg

In this example, you have to manually copy clariondrv.dll to:\Samples\MixedLanguages\CSharptoClarion\bin\Debug before running the solution of either example.

MyFirstWebService

This example shows how to launch a web service in Clarion.NET. It is important to examine the ReadMe first (you'll see it in the Project) to properly configure your folder before running this sample.

MyFirstWebSite

Here is a simple example that shows how to create a WebForms and ASP.NET program with Clarion.NET. As in the WebService example, it is important to view the ReadMe first (you'll see it in the Project) for proper configuration instructions.

NetRemoting

This shows how to use .NET Remoting? The author of this program put it this way. “Using Clarion.NET, I can now use multiple processors and machines to do the work for me!” We will have a readme on how to use this posted later in this forum.

People

We had to include the now famous People example, this time in Clarion.NET. This application should need no explanation. It shows Browse/Form/Report. In addition, we discuss and demonstrate how this was created via the template in one of our ClarionSharpbyExample lessons.

ScreenCapture

This Clarion# example demonstrates how easy it is to tap into the .NET Framework library. It has some real world use, but we also added it for some fun!

clarion_net_shipping_examples.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1