Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Coolbar's child backcolor

Posted on 1999-07-07
1
Medium Priority
?
244 Views
Last Modified: 2010-05-02
I've placed a listbox as a child in a coolbar's band and changed the listbox's backcolor to black.
It becomes black at design time, but appears white at running time.
The same problem occurs with the forecolor that i can't set to anything else than black.
How can i have the listbox's backcolor and forecolor changed at running time ?
0
Comment
Question by:minette
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
HATCHET earned 150 total points
ID: 1522526
minette,

I haven't worked a lot with the CoolBar control because there are some problems with it that I've found on redistribution.  I messed around with it for your question and found the same thing!  Very odd.  When you put a standard ListBox control into the CoolBar either before or after you change it's color, it defaults back to white inside of the CoolBar and you can't change it's BackColor property at Run Time.

Here's the solution :  Press <CTRL> + T ... this will bring up the "Components" dialog.  Select "Microsoft Forms 2.0 Object Library" which is part of the FM20.DLL.  Once this is added, you'll notice that it gives you a whole new set of controls to work with similar to the original default controls.  These are "Updates" to the defaults.  You'll notice that one of the controls is a "ListBox".  Use this instead of the default ListBox.  It has a lot more options and is more robust.  I've tried it, and it WILL allow you to change it's BackColor property once made into a child of the CoolBar either at design time, or at run time... and it STICKS!    =]

Hope that helps.

HATCHET
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question