Solved

scroll on a disabled or readonly text box

Posted on 2006-10-31
4
370 Views
Last Modified: 2012-05-05
How can you scroll on a textbox that is disabled or readonly?
0
Comment
Question by:shmitnols
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…

808 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