R
Rob W
Greetings,
I have used the code below to access the ONLY control on the MDIChild a
textbox and if the selected text is not nothing then use the clipboard cut
method.
Could this be done more efficiently?
I was attempting to reference the MDIChild control by its name but could
only find success with the method below.
Dim TB = CType(Me.ActiveMdiChild.ActiveControl, TextBox)
If (TB.SelectedText) IsNot Nothing Then
TB.Cut()
End If
Thanks
Rob
I have used the code below to access the ONLY control on the MDIChild a
textbox and if the selected text is not nothing then use the clipboard cut
method.
Could this be done more efficiently?
I was attempting to reference the MDIChild control by its name but could
only find success with the method below.
Dim TB = CType(Me.ActiveMdiChild.ActiveControl, TextBox)
If (TB.SelectedText) IsNot Nothing Then
TB.Cut()
End If
Thanks
Rob