A
Andy
I am trying to edit a item in a form.....
On the form it looks like
Change it < >
and I want the user to add the information inbetween the < > so it
will end looking something like this when they finish
Change it < I added this >
I've got some of the way by doing it in listview
ListView1.Items.Add("Change it")
ListView1.Items.Add("<")
ListView1.Items.Add(" ")
ListView1.Items.Add(">")
and control which column can be edited with the BeforeLabelEdit
Private Sub ListView1_BeforeLabelEdit(ByVal sender As Object, _
ByVal ChangeIT As System.Windows.Forms.LabelEditEventArgs) _
Handles ListView1.BeforeLabelEdit
If (ChangeIT.Item < 2) Then
ChangeIT.CancelEdit = True
End If
End Sub
BUT this doesnt work as becasue the trailing > doesnt move as the text
is added..... it just wraps the text into the the 3 column
Anybody got any ideas
Thanks
Andy
On the form it looks like
Change it < >
and I want the user to add the information inbetween the < > so it
will end looking something like this when they finish
Change it < I added this >
I've got some of the way by doing it in listview
ListView1.Items.Add("Change it")
ListView1.Items.Add("<")
ListView1.Items.Add(" ")
ListView1.Items.Add(">")
and control which column can be edited with the BeforeLabelEdit
Private Sub ListView1_BeforeLabelEdit(ByVal sender As Object, _
ByVal ChangeIT As System.Windows.Forms.LabelEditEventArgs) _
Handles ListView1.BeforeLabelEdit
If (ChangeIT.Item < 2) Then
ChangeIT.CancelEdit = True
End If
End Sub
BUT this doesnt work as becasue the trailing > doesnt move as the text
is added..... it just wraps the text into the the 3 column
Anybody got any ideas
Thanks
Andy