Forum: VB.NET Jan 20th, 2009 |
| Replies: 26 Views: 1,768 I was able to solve the problem using Standard TextBox control Vs. RichTextBox Control which for some reason makes ERRORS / Problems with GetLineFromCharIndex and Counts the Incorrect Line
Here is... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 I have word wrap as False and I get different results from GetLinefromCharIndex and Lines.Length.
What else can I do? |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 Array in a Textbox? I have always had the Text In a RichTextbox. Then I Search it. Ultimately I'm doing the same thing. I'm just making it possible to see what Lines I have been copying by saving... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 Now... This Runs Extreamly Fast, But it picks Either the Incorrect lines or something else (Not sure)
RichTextBox2.Clear()
RichTextBox2.Text = String.Empty
... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 Yes and No. Basicly Highlighting Text is not the answer, but Finding the Text is the Answer. I don't need to highlight. I just need to know the Line Position of the Text String and for each found... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 1 Views: 1,100 How do I find a Known String of Text "M6" from a Loaded Text Document that is in RichTextBox1, then get it to output the Lines that these strings (all of them) are found to a ListBox. Notepad can do... |
Forum: VB.NET Jan 16th, 2009 |
| Replies: 26 Views: 1,768 Addressof Match " does not fit, Match is an Error. What should this Match be?
All I want is to speed up the Text Find and Save to String Process. I have tried 4 different Methods. All of which... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 What about using the Find Feature? I now that Document.Find(TextBox1.Text) works (for what character)... but I don't know how to apply it to find what Line, or how to get it to start at the line it... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 I changed to this
Dim FileLines() As String = File.ReadAllLines(Document.Text)
Dim SavedLines As New ArrayList
For I As Integer = 0 To LineCount - 1
If... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 Maybe its because this is how I wrote it?
Dim curLine As String
Dim oldLine As String
Dim bFlag As Boolean
Dim SavedLines As New Stack
Dim fs = New... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 This is about as simple of code as I could muster together that will show the problem.
How do we fix this from Taking 10 minutes to find strings of Text that I know that a standard CTRL+F can... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 Now " New StreamReader(fs) "is the OverLoad Resolution |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 I already have this... but I still have an error at " Dim ds As New StreamReader(fs) "
What would cause this to be a problem? |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 I got it ro Re-Loop, but it overwrites Line 1 " This Document..." and String.Join doesn't let me add "TEXT".
The Write Isn't really the Slowdown though. It is the ReadLines. But this will help... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 String.Join works very fast, but after it reads its first set of lines it doesn't re-Loop. So I can get the first 75 characters.. then when Textbox1.Text Appears it copies 20 lines before that to 20... |
Forum: VB.NET Jan 15th, 2009 |
| Replies: 26 Views: 1,768 Dim d as new StreamReader(fs)
Causes "Overload Resolution Failed , New cannot be called - Object to String"
--- So I cannot test this feature and I'm not sure what this Error Means. |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 26 Views: 1,768 I'm a little confused? Exactly how is this going to stop the 10000 ReReads? Won't it still ReRead? |
Forum: VB.NET Jan 13th, 2009 |
| Replies: 26 Views: 1,768 I have been trying to process some text about 10000 lines to upwards of 26000 lines of text. I wrote a program to search for text strings and copy the lines around them if they are found.
It... |