|
| ||||||||||
| Tags: lines, selecting |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Selecting Lines
it have written a notepad application in C# 2008 which i am using to open documents with a lot of lines for example 5000+ lines. the problem that i have is that i have created a button that i want to use to select a specific number of lines. For example if i have a document that contains 5000 lines, i want to be able to select 3000 when i press the button. Then i can cut or copy the highlighted lines. This is the code i use to count the number of lines Int32 lines = richTextBox1.Lines.Length; Int32 textLength = richTextBox1.Text.Length; statusLabel.Text = "Lines: " + lines + " Characters: " + textLength; Thank you for your help in advance |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Selecting Lines" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help in selecting PS3 exclusives | Bhuvana21 | Video Games | 4 | 18-05-2011 09:29 AM |
| need help in selecting a new psu | Eagle Hawk | Hardware Peripherals | 6 | 29-08-2010 12:05 AM |
| Selecting a constructor to use with new in C++ | Carlton | Software Development | 5 | 01-02-2010 11:30 PM |
| Help in selecting a new motherboard | bensonjr | Motherboard Processor & RAM | 1 | 15-07-2009 05:00 PM |
| help selecting pc | headrush46n2 | Motherboard Processor & RAM | 5 | 20-01-2009 05:12 PM |