Enabled

  • Thread starter Thread starter barbapapa
  • Start date Start date
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.
 
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
 
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
 
Back
Top