473,396 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Scroll bar on a disabled TextBox

Rab
Hi

I have a TextBox on my form with Enable=False and Lock=True which needs
to display comments but not allow the user to edit it. Since some
comments are long, I need a scroll bar to allow the user to scroll up
and down to view all of the comment. Scroll Bar property is already set
to 'Vertical' but does not appear because the TextBox cannot get focus
(as it is disabled for read-only).

Is there a way around it so that the TextBox can remain read-only and I
can have it get focus so that the scroll bar can be activated?

TIA

Rab

Nov 13 '05 #1
3 11233
rkc
Rab wrote:
Hi

I have a TextBox on my form with Enable=False and Lock=True <snip> Is there a way around it so that the TextBox can remain read-only and I
can have it get focus so that the scroll bar can be activated?


Lock=True is all you need to make the control read only.
Nov 13 '05 #2
Rab
Thanks a lot for that. The VBA online documentation expalins the
Enabled property as something else all together:
"The Enabled property setting is a value that indicates whether the
conditional format is enabled or disabled."

After I've done this, I notice that the background (which has been set
to transparent) becomes white when the focus goes to the TextBox. Is
there any way to ensure that the background also remains transparent?

TIA

Nov 13 '05 #3
After I've done this, I notice that the background (which has been set
to transparent) becomes white when the focus goes to the TextBox. Is
there any way to ensure that the background also remains transparent?

Change the backcolor of the Textbox to the backcolor of your detail-section.

Arno R
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Sonia | last post by:
It seems whenever I set a DataGrid.DataSource = DataTable (vb.net) to populate a datagrid, the scroll bars on the datagrid default to disabled. And the only way I can get them to enable is to...
1
by: JS | last post by:
I have a textbox and a button. Sometimes this textbox will be disabled and other times it will be enabled. When its disabled I guess its value is null. But is the the text string "null" or is it...
6
by: MLH | last post by:
You know how the text in the attached label sort of 'greys out' when you click something that sets MyTextbox.Enabled = False? I would like to make a label's text look like that? How do I do it?...
1
by: Tom McLaughlin | last post by:
How can I write code to scroll a textbox control line by line? Thanks Tom
1
by: Toty Santana | last post by:
i have a textbox server control whos value is being changed using javascript. when the text is changes and i post back to the server the Text change is not reflected, instead i get blank string....
2
by: Jeremy | last post by:
I add lines to my textbox (WPF) showing the progress of processes. I'd like the visible part to scroll so that the most recent line is always visible. The following does not scroll, but it does...
1
by: codeseeker1 | last post by:
hi all, i have a disabled textbox in a php page .But i need to get its value on form submit.can anyone help me? thanks in advance
1
by: newbie009 | last post by:
How can I disable horizontal scroll in textbox for FireFox? Right now 1 textbox has vertical scroll and other textbox has horizontal scroll. It only looks like this on FireFox but it looks ugly....
1
by: itsmenarwal | last post by:
HI everyone I have a textbox i have disabled it with a fix value(like in online papers if you solved first question and move to second question first question get disabled now u cant make editing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.