Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can anybody give me a sample code (or a link) showing how I can perform "CTRL + V" paste operation in a textbox in html form?

The id of textbox is "user". I have a textbox in a vb.net form.
I enter some value and click on a button and the value should be copied in memory and then to the textbox.

I have been asked by my teacher to do this. So please do not tell me to do it by using webbrowser etc.


free microsoft word

amit upadhyay
Posted
Updated 22-Jul-10 3:49am
v2
Comments
Dalek Dave 22-Jul-10 9:54am    
Edited for Readability, Spelling and Syntax.
Dalek Dave 22-Jul-10 10:13am    
Glad to be of help, but hit accept answer if you would be so kind!

1 solution

We don't do your homework.
Pointless us doing it as you will learn nothing.

Attempt it, then when you run into a particular problem, we can help.

However try thinking along the lines of clipboard copy and paste functions.
 
Share this answer
 
Comments
amit_upadhyay 22-Jul-10 9:56am    
thanks for your motivation. will try my best.
amit_upadhyay 22-Jul-10 10:11am    
hey Dalek indeed you helped me learn something.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Shell("notepad", vbNormalFocus)
Clipboard.SetText("my first trick")
SendKeys.Send("^v")
End Sub

works perfectly...
i will try with html forms later.
Dalek Dave 22-Jul-10 10:13am    
Glad to be of help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900