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

Sponsored Links



Selecting Lines

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-06-2009
Member
 
Join Date: Nov 2008
Posts: 20
Selecting Lines
  

Hi,

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
Reply

  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 01-02-2010 11:30 PM
help for selecting new Hardware sizala Motherboard Processor & RAM 5 23-12-2009 10:02 AM
help selecting pc headrush46n2 Motherboard Processor & RAM 5 20-01-2009 05:12 PM
Selecting the new Cooler Saaarc Overclocking & Computer Modification 5 24-11-2008 06:12 PM


All times are GMT +5.5. The time now is 09:35 PM.