Dim activeChild As Form = Me.ActiveMdiChild If (Not activeChild Is Nothing) Then Try Dim tb As TextBox = CType(activeChild.ActiveControl, TextBox) If TextBox.CanRedo = True Then If TextBox.RedoActionName <> "Delete" Then TextBox.Redo() End If End If Catch MessageBox.Show("You need to select a TextBox.") End Try End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)