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

Tags: ,

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

Sponsored Links
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


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 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


All times are GMT +5.5. The time now is 09:28 AM.