Enabled

B

barbapapa

When I set a field to enabled = true in visual basic it turn gray and it's
difficult for the user to read the data, is there a way that I can change
the field to a different color or make the data more readable? I tried
Me![field].backcolor = (number) but does not seems to work. Thanks.
 
W

Wayne Gillespie

If you set the BackStyle property to Transparent the control will appear the
same color as the form behind it.
You can also set the SpecialEffect to Flat, and the BorderStyle to Tramsparent,
the control will look just like a Label and it is obvious the control cant be
edited.

Play around with different combinations of these properties until you find a
suitable solution.

I'm sorry I meant to say Enabled = false turn the field gray, but now I'm
wondering if I should use a different color to let the user knows that the
field is not available. Any comments? Thanks.
Wayne Gillespie said:
When I set a field to enabled = true in visual basic it turn gray and it's
difficult for the user to read the data, is there a way that I can change
the field to a different color or make the data more readable? I tried
Me![field].backcolor = (number) but does not seems to work. Thanks.

Use the Enabled Property and the Locked Property together to get the following
results.

MyControl.Enabled = False
MyControl.Locked = True
The control will be disabled but will display as a normal.

MyControl.Enabled = False
MyControl.Locked = False
The control will be disabled but will display as a dimmed out.

MyControl.Enabled = True
MyControl.Locked = False
The control will be enabled (Default)

MyControl.Enabled = True
MyControl.Locked = True
The control will be enabled but cannot be edited.


Wayne Gillespie
Gosford NSW Australia

Wayne Gillespie
Gosford NSW Australia
 
B

barbapapa

Thank you Wayne it works just fine now.

Wayne Gillespie said:
If you set the BackStyle property to Transparent the control will appear the
same color as the form behind it.
You can also set the SpecialEffect to Flat, and the BorderStyle to Tramsparent,
the control will look just like a Label and it is obvious the control cant be
edited.

Play around with different combinations of these properties until you find a
suitable solution.

I'm sorry I meant to say Enabled = false turn the field gray, but now I'm
wondering if I should use a different color to let the user knows that the
field is not available. Any comments? Thanks.
Wayne Gillespie said:
When I set a field to enabled = true in visual basic it turn gray and it's
difficult for the user to read the data, is there a way that I can change
the field to a different color or make the data more readable? I tried
Me![field].backcolor = (number) but does not seems to work. Thanks.


Use the Enabled Property and the Locked Property together to get the following
results.

MyControl.Enabled = False
MyControl.Locked = True
The control will be disabled but will display as a normal.

MyControl.Enabled = False
MyControl.Locked = False
The control will be disabled but will display as a dimmed out.

MyControl.Enabled = True
MyControl.Locked = False
The control will be enabled (Default)

MyControl.Enabled = True
MyControl.Locked = True
The control will be enabled but cannot be edited.


Wayne Gillespie
Gosford NSW Australia

Wayne Gillespie
Gosford NSW Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top