|
-
Dec 2nd, 2008, 12:25 PM
#1
Thread Starter
Junior Member
[02/03] Text Highlighting Export
I have this piece of code which highlights the desired text
Code:
For x As Integer = 0 To Form1.txtLocat.Lines.GetUpperBound(0)
If Form1.txtLocat.Lines(x).Contains(txtFind.text) Then
Form1.Show()
Hide()
Form1.txtLocat.SelectionStart = Form1.txtLocat.GetFirstCharIndexFromLine(x)
Form1.txtLocat.SelectionLength = Form1.txtLocat.Lines(x).Length
Form1.txtLocat.SelectionColor = Color.Green
End If
My question is, is it possible to export the highlighted code into a new text or word document??
-
Dec 2nd, 2008, 01:06 PM
#2
-
Dec 4th, 2008, 07:16 AM
#3
Thread Starter
Junior Member
Re: [02/03] Text Highlighting Export
Thanks but how do i get the clipboard to copy to a new text document??
ive entered your code but get an error stating Eternal exception was unhandled as the requested clipboard operation did not succeed??
-
Dec 4th, 2008, 10:39 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|