T
Tor Inge Rislaa
Copy, Cut and Paste
How to code the Copy, Cut and Paste functionality in VB.NET. In VB 6.0 I
used the following code:
'For Copy
Clipboard.Clear
Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText
'For Cut
Clipboard.Clear
Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText
ActiveForm.ActiveControl.SelText = ""
'For Paste
If Clipboard.GetFormat(vbCFText) Then
ActiveForm.ActiveControl.SelText = Clipboard.GetText(vbCFText)
End If
T.I.Rislaa
How to code the Copy, Cut and Paste functionality in VB.NET. In VB 6.0 I
used the following code:
'For Copy
Clipboard.Clear
Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText
'For Cut
Clipboard.Clear
Clipboard.SetText ActiveForm.ActiveControl.SelText, vbCFText
ActiveForm.ActiveControl.SelText = ""
'For Paste
If Clipboard.GetFormat(vbCFText) Then
ActiveForm.ActiveControl.SelText = Clipboard.GetText(vbCFText)
End If
T.I.Rislaa