Hi,
I'm using a ListView control in an app I'm developing...
When a user clicks the New button in my form I add a new ListViewItem
and call the BeginEdit() function on this item.
My problem is I wish to limit the text entered into the text for this
item to 70 characters. I notice that the data entered into the item
seems to be from a floating text box on top of the item. Is there any
way to get this textbox and set the MaxLength property?
I've also thought of using the AfterLabel edit event to verify this.
However this isn't ideal as I'd like the user to know as soon as they
hit 70 characters (ie they can't enter any more), rather than being
informed after the event. Also the
System.Windows.Forms.LabelEditEventArgs.Label property is read only and
I can't see any simple way of writing the newly shortened string to the
item...
Thanks in advance!
Pep