View Single Post
  #4 (permalink)  
Old 03-10-2008, 12:03 PM
Leginus Leginus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

You can do it by creating your own copy and paste buttons and using the selstart and sellength property. Example attached

Code:
Sub Globals
	'Declare the global variables here.
Dim CopyText
End Sub

Sub App_Start
	Form1.Show
	
End Sub


Sub TextBox1_KeyPress (key)
textbox1.IgnoreKey
End Sub

Sub btnCopy_Click
copyText=SubString(textbox1.text,textbox1.SelectionStart,textbox1.SelectionLength)
End Sub

Sub btnPaste_Click
textbox2.Text=copytext
End Sub
Attached Files
File Type: sbp textboxcopy.sbp (869 Bytes, 2 views)
Reply With Quote