old Hippy
Gebruiker
- Lid geworden
- 24 mei 2008
- Berichten
- 911
hi allemaal
ik heb in mijn project de knoppen copy en paste nodig.
dit lukt wel maar er staan verschillende groepboxen op het tabblad.
is het mogelijk om in mijn hele project dit toe tepassen????
de code die ik nu gebruik is met een toolstripbutton click EditCopy() en de volgende code
Het werkt nu alleen in de groepbox1
Iemand????????
ik heb in mijn project de knoppen copy en paste nodig.
dit lukt wel maar er staan verschillende groepboxen op het tabblad.
is het mogelijk om in mijn hele project dit toe tepassen????
de code die ik nu gebruik is met een toolstripbutton click EditCopy() en de volgende code
Het werkt nu alleen in de groepbox1
Code:
Private Sub EditCopy()
'Process each control in the MyProject Panel
Dim groupbox As New Control
For Each objPanel As Control In GroupBox1.Controls
'If this is a TextBox...
If TypeOf objPanel Is TextBox Then
'If it has focus...
If objPanel.Focused Then
'Set a reference to it so the properties and
'methods are available
Dim objTextBox As TextBox = objPanel
'See if any text has been selected
If objTextBox.SelectionLength > 0 Then
'Copy the text and place it on the
'Clipboard
objTextBox.Copy()
End If
'The work is all done so exit the procedure
Exit Sub
End If
End If
Next
End Sub
Iemand????????