Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 368787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:51:26+00:00 2026-05-12T13:51:26+00:00

I need a way to show multiple lines of text (e.g. 1000 lines) in

  • 0

I need a way to show multiple lines of text (e.g. 1000 lines) in a console application, and be able to scroll through all lines. However, when I do something like the code snippet below, I can only see the last 100 or so lines in the console.

for (int i = 1; i <= 1000; i++)
{
   Console.WriteLine(i.ToString());
}

My initial though was to show a chuck of lines (e.g. 100 at a time), and let the user hit to browse further, but I’ve hoped there was an easier – and more userfriendly way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:51:27+00:00Added an answer on May 12, 2026 at 1:51 pm

    If you want more control over the amount of lines which are scrollable in the Console, you can adjust the Console.BufferHeight property to be much larger. The value is the number of rows which are displayed. So if you set it to the number of lines, and assuming none of them wrap, your output will be scrollable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a simple way to monitor multiple text log files distributed over a
Is there any way to show joptionpane in shutdownhook i.e I need to show
I need a way to take text from a EditText as soon as the
I need a way to write over lines in a specific file. As it
I need some way to monitor a desktop application and restart it if it
I need to prevent users from starting my Java application (WebStart Swing app) multiple
For my web application, I need to store form inputs spanning across multiple pages,
I am having problem displaying a text with multiple lines. For example, the user
I need to display multiple lines of messages, rather than just one paragraph, in
I need a way to change the specific value of a column of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.