473,386 Members | 1,720 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,386 software developers and data experts.

listbox will not dim

I have several listboxes on a form. When the form opens, they are all
disabled and, as a result, are dimmed. All that is except for one.

One of the listboxes is disabled but does not dim automatically so it
looks like it is enabled. I know that I can change the color so that
it will look disabled but shouldn't it do that without the extra code.

Thanks for any suggestions.
Deborah

Jun 27 '07 #1
4 2073
On Jun 27, 10:45 am, "dgard...@twcny.rr.com" <dgard...@twcny.rr.com>
wrote:
I have several listboxes on a form. When the form opens, they are all
disabled and, as a result, are dimmed. All that is except for one.

One of the listboxes is disabled but does not dim automatically so it
looks like it is enabled. I know that I can change the color so that
it will look disabled but shouldn't it do that without the extra code.

Thanks for any suggestions.
Deborah
You cant disable an object that has focus. Perhaps this is yoru issue.

Jun 27 '07 #2
dg******@twcny.rr.com wrote:
I have several listboxes on a form. When the form opens, they are all
disabled and, as a result, are dimmed. All that is except for one.

One of the listboxes is disabled but does not dim automatically so it
looks like it is enabled. I know that I can change the color so that
it will look disabled but shouldn't it do that without the extra code.

Thanks for any suggestions.
Deborah
When you open the form in design mode, property sheet displayed, Data
tab selected, are all listboxes set to enabled = No?

How do you know that the listbox is disabled? Most likely the Locked
property is set to Yes.

Enabled Yes, Locked Yes or No ;white
Enabled No, Locked Yes ;white
Enabled No, Locked No ;Dimmed

Jun 27 '07 #3
On Jun 27, 11:13 am, salad <o...@vinegar.comwrote:
dgard...@twcny.rr.com wrote:
I have several listboxes on a form. When the form opens, they are all
disabled and, as a result, are dimmed. All that is except for one.
One of the listboxes is disabled but does not dim automatically so it
looks like it is enabled. I know that I can change the color so that
it will look disabled but shouldn't it do that without the extra code.
Thanks for any suggestions.
Deborah

When you open the form in design mode, property sheet displayed, Data
tab selected, are all listboxes set to enabled = No?

How do you know that the listbox is disabled? Most likely the Locked
property is set to Yes.

Enabled Yes, Locked Yes or No ;white
Enabled No, Locked Yes ;white
Enabled No, Locked No ;Dimmed
The listbox does not have the focus.
When I open the form, I cannot select an item in the list (which is
the way I want it).
In Design View, Enabled is set to Yes and Locked is set to No. All the
other listboxes are Enabled No, Locked No.

I set Enabled to No and now when I open the form, it is disabled and
Enabled is set to no. The associated label is dimmed but the list
itself and the column heading are still not dimmed.

Thanks for your help,
Deborah

Jun 27 '07 #4
dg******@twcny.rr.com wrote:
On Jun 27, 11:13 am, salad <o...@vinegar.comwrote:
>>dgard...@twcny.rr.com wrote:
>>>I have several listboxes on a form. When the form opens, they are all
disabled and, as a result, are dimmed. All that is except for one.
>>>One of the listboxes is disabled but does not dim automatically so it
looks like it is enabled. I know that I can change the color so that
it will look disabled but shouldn't it do that without the extra code.
>>>Thanks for any suggestions.
Deborah

When you open the form in design mode, property sheet displayed, Data
tab selected, are all listboxes set to enabled = No?

How do you know that the listbox is disabled? Most likely the Locked
property is set to Yes.

Enabled Yes, Locked Yes or No ;white
Enabled No, Locked Yes ;white
Enabled No, Locked No ;Dimmed


The listbox does not have the focus.
When I open the form, I cannot select an item in the list (which is
the way I want it).
In Design View, Enabled is set to Yes and Locked is set to No. All the
other listboxes are Enabled No, Locked No.

I set Enabled to No and now when I open the form, it is disabled and
Enabled is set to no. The associated label is dimmed but the list
itself and the column heading are still not dimmed.

Thanks for your help,
Deborah
Odd. I should think that all listboxes should be set to enabled = No,
Locked = No in design mode would work.

I'd click on a listbox that works like you want it to then CTRL+C/CTRL+V
and create a new listbox. Now copy the Rowsource and column counts from
the bad listbox to the new listbox. Then delete the old listbox.

I'd also check to see if there is any code that sets the Locked to No.
Jun 27 '07 #5

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

Similar topics

17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
3
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
1
by: Daniel | last post by:
hi, I had an asp:listbox, and everytime i click item inside, the bar automatically go to the top, is there any way to keep the scroll position? I turn on the smartNavigation, it still doesn't...
13
by: Larry Woods | last post by:
I am creating a "from-to" set of listboxes where the "left" listbox had a list of values and I want to be able to select these values, 1 at a time, and move them into a "right" listbox, removing...
7
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
6
by: Mark | last post by:
Hello. I have a listbox whose rowsource is set to a saved query (call it "qry_customer_list.") When I add customers to my database, I call the listbox Requery method so that the listbox will...
4
by: rn5a | last post by:
Can the items in a ListBox be sorted by the name of the items? The ListBox actually lists all directories & files existing in a directory on the server. Note that all the directories should be...
2
by: Steve Potter | last post by:
I am trying to find some method of attaching a Listbox object to a list object so as the contents of the list are changed the contents of the Listbox will be updated to match. I have found a few...
8
by: jh | last post by:
I'd like to copy/paste into a listbox during runtime. I can do this for a textbox but can't figure out how to accomplish this for a listbox. Any help? Thanks.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...

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.