By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,455 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,455 IT Pros & Developers. It's quick & easy.

Scroll bar on a disabled TextBox

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.