Click to See Complete Forum and Search --> : Copy Control
Steve25
June 11th, 2009, 02:07 PM
I'm trying to create copy in a menu however i'm having trouble to get it to work as i want it to. I've seen many tutorials online that have 2 textboxes and the code to the copy control is simply TextBox1.Copy() and paste is TextBox2.Paste(). This is fine but what about when you want to copy from TextBox2 to TextBox1 or when you want to copy only part of the highlighted text? Does anyone know what i can use to get it properly working? Thanks
DataMiser
June 11th, 2009, 03:44 PM
I haven't played with it in dot net but in VB6 you would use selstart sellength, seltext to get or set a portion of the text
In your question it seems like seltext is the property you would be looking for as it returns the currently highlighted portion of the text only.
How this relates to copy in dot net I do not know but it may help you find the answer.
HanneSThEGreaT
June 12th, 2009, 06:50 AM
Good timing :)
I'm actually busy developing an FAQ concerning Copy & Paste, and how to use the Clipboard in general.
This is the download, I'm planning to add to the FAQ.
I sincerely hope it helps you :)
Steve25
June 12th, 2009, 08:40 AM
This is great thanks i'll have a look at this shortly :)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.