| Skype: | TextControlSupport | |
| Orders: | 877-462-4772 |

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

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:
TextControl1.Cursor = System.Windows. Forms.Cursors.PanEast
A custom cursor should point to a .cur resource file and can be specified like this:
TextControl1.Cursor = New System.Windows. 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:
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.