Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.
What is this?Syndicate this content

Use custom cursors with TX Text Control .NET

This source code snippet requires TX Text Control .NET
Author:TX Text Control Support Department
Language:Visual Basic .NET
Version:1.0
Released:October 29, 2004
Last modified:January 11, 2008
Requirements:TX Text Control .NET with Visual Basic .NET
Download code:tx_sample_dotnet_cursor.zip Download [10.98 KB, ZIP]
Click to enlarge

Use different mouse cursors in TX Text Control .NET

This small sample shows you how to use the Cursor and the FieldCursor properties. These properties can be used to specify how the cursor should be displayed for text insertion and when moving over a field.

The Cursor property accepts a system cursor (provided by VB.NET) or a custom cursor. A system cursor can be specified like this:

  1. TextControl1.Cursor = System.Windows.
  2. Forms.Cursors.PanEast

A custom cursor should point to a .cur resource file and can be specified like this:

  1. TextControl1.Cursor = New System.Windows.
  2. Forms.Cursor("beam_il.cur")

The FieldCursor property is shown, if the mouse moves over a text field like a hyperlink. The property is used in the same way like the Cursor property:

  1. TextControl1.FieldCursor = New System.Windows.Forms.Cursor("ie.cur")

The sample requires Visual Studio 2003 and at least a TX Text Control .NET 11.0 trial version.

top

Top 10 Bestselling Product Award 2007Top 25 Publisher Product Award 2007Top 10 Bestselling Product Award 2007 in JapanTop 25 Bestselling Product Award 2006Top 25 Bestselling Publisher Award 2006Reader's Choice Award, dot.net magazin, 3rd place