Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 25-06-2009
Join Date: Nov 2008
Posts: 20
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
Reply With Quote

  TechArena Community > Software > Software Development
Tags: ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Selecting Lines"
Thread Thread Starter Forum Replies Last Post
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 02-02-2010 12:30 AM
help for selecting new Hardware sizala Motherboard Processor & RAM 5 23-12-2009 11:02 AM
help selecting pc headrush46n2 Motherboard Processor & RAM 5 20-01-2009 06:12 PM
Selecting the new Cooler Saaarc Overclocking & Computer Modification 5 24-11-2008 07:12 PM

All times are GMT +5.5. The time now is 06:38 AM.