Solved

scroll on a disabled or readonly text box

Posted on 2006-10-31
4
373 Views
Last Modified: 2012-05-05
How can you scroll on a textbox that is disabled or readonly?
0
Comment
Question by:shmitnols
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Roopesh_7 earned 500 total points
ID: 17844456
enable it won't work but it is a readonly scroll bar will work .....
0
 

Author Comment

by:shmitnols
ID: 17844563
readonly did not work either
0
 
LVL 6

Expert Comment

by:Roopesh_7
ID: 17845376
put readonly on and textmode = multiple line
0
 
LVL 12

Expert Comment

by:sandip132
ID: 17847302
ReadOnly textbox can scroll...

this.textBox1.Location = new System.Drawing.Point(88, 80);
                  this.textBox1.Multiline = true;
                  this.textBox1.Name = "textBox1";
                  this.textBox1.ReadOnly = true;
                  this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
                  this.textBox1.Size = new System.Drawing.Size(144, 56);
                  this.textBox1.TabIndex = 0;
                  this.textBox1.Text = "textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 " +
                        "textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1 textBox1" +
                        " textBox1 ";
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question