I seem to have globally lost the Windows standard Ctrl-C (copy) and Ctrl-V (paste) functionality between the text boxes in my application. Their content is copied from, but not bound to, a database table. It's almost as if the application/solution itself has "a switch turned off" somewhere.
Where should I start looking please? Any ideas? The textboxes are nothing clever, and their Read Only properties are left at the default "False".
Alternatively highlight the text you want to copy with the mouse THEN Ctrl-C then do your Ctrl-V .
'Doing this via a GLOBAL variable means you can
'use this text in any other Sub. :-)
Dim pasteText As String
'Enter some text in textbox1 and then click the mouse in textbox1
Private Sub TextBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown
pasteText = TextBox1.Text
'Click the mouse in textbox2 and the text is copied (pasted) from textbox1
Public Sub TextBox2_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox2.MouseDown
TextBox2.Text = pasteText
Wednesday, February 28, 2007 9:01 PM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.