Hi Wade,
Sorry I have not tested my code with a DataRepeater as I thought your issue is on MultipleLine = true.
And yes you are right, it is nto straight-forward on the DataRepeater to realize it as theTextBox control are cloned inthedisplayed row.
Change to the following code, it should work:
Private Sub TextBox1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.MouseEnter
Dim txtBox As TextBox = TryCast(sender, TextBox)
If (txtBox IsNot Nothing) Then
txtBox.Multiline = True
txtBox.Height = 100
End If
End Sub
Private Sub TextBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.MouseLeave
Dim txtBox As TextBox = TryCast(sender, TextBox)
If (txtBox IsNot Nothing) Then
txtBox.Multiline = False
End If
End Sub
You can see that inside the event hadler, we should not assume the TextBox control is me.TextBox1, which is just a template. You will need to use the one from sender.
Hope this time it will solve your issue.
Thanks!
John Chen
-- See my team blog: http://blogs.msdn.com/vsdata. All my posts are provided "AS IS" with no warranties, and confer no rights.