copy and paste text data

rahesh

New member
Joined
Jun 5, 2008
Messages
3
Programming Experience
1-3
hi,

i need to copy text data from my program using keyboard shorcut(like ctrl+k) and want to paste this data into any other applications like naotepad,wordpad etc... using some other shortcuts(ctrl+l) .i dont want to use windows copy and paste shortcuts.(that is ctrl+c and ctrl+v).

can anybody please help me in doing this....
 
Why can't you use the windows shortcuts?

VB.NET:
Expand Collapse Copy
    Private m_blnCtrlKey As Boolean = False

    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
        If e.Control = True Then m_blnCtrlKey = True
    End Sub

    Private Sub txtNewName_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtNewName.KeyPress
        If m_blnCtrlKey = True AndAlso Asc(e.KeyChar) = Keys.K Then
            'Ctrl + K was pressed
        End If
    End Sub

    Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
        m_blnCtrlKey = False
    End Sub
 
Back
Top