Connecting Tech Pros Worldwide Forums | Help | Site Map

Scroll bar on a disabled TextBox

Rab
Guest
 
Posts: n/a
#1: Nov 13 '05
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


rkc
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Scroll bar on a disabled TextBox


Rab wrote:[color=blue]
> Hi
>
> I have a TextBox on my form with Enable=False and Lock=True[/color]
<snip>[color=blue]
> 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?[/color]

Lock=True is all you need to make the control read only.
Rab
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Scroll bar on a disabled TextBox


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

Arno R
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Scroll bar on a disabled TextBox


[color=blue]
> 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?
> [/color]
Change the backcolor of the Textbox to the backcolor of your detail-section.

Arno R
Closed Thread


Similar Microsoft Access / VBA bytes