two color form

G

Guest

I have a switchboard form which I am trying to look prettier. It has a few
controls such as a few text box controls and command buttons. It had a single
color in the background that is in the 'detail' section which is gray. I am
attempting to have a thick border of a different color around the form. For
this, what I did was : I enclosed all the controls in a 'rectangle', the
dimensions of which are such that it leaves a 'border' around the rectangle.
This border is nothing but the detail section. I am changed the color of the
rectangle to another color by changing the 'back color' property of the
rectangle. When I do this, it does change the color inside the rectangle to
the desired color(with the color of the 'detail' section intact) but hides
all the controls (inside the rectangle) except a couple of them. How can I
make my controls appear?
 
D

Debra Farnham

Hi Neeraj

Change the LINE colour of your rectangle to the desired color and the FILL
color to no fill (or -2147483633 if you are using the property sheet for
changing the back color).

HTH

Debra
 
G

Guest

By line color, I assumed you mean 'border color' in properties of the
rectangle...if it does, that didn't help...it is still the same result.. all
controls are hidden except a couple
 
D

Debra Farnham

Oops

Forgot to mention that the back style should be set to transparent.

Is your border now the right color?
 
G

Guest

If I set the 'back style' of the rectangle to transparent, the rectange never
gets any color and has the same color as the surrounding detail section
though all the controls inside it are visible. And when I set the 'back
style' of the rectangle to normal, I do get the color inside the rectangle as
desired but all the controls except 3 controls ( a list box, a label and a
combo box) become invisible. The ones becoming invisible are other label
controls, combo boxes and command buttons. I compared the properties of the
label control that is becoming invisible to that which stays visible and they
are the same and they are both in the same rectangle. It is baffling that
one label control disappears and the other stays given the environment that
they are in is the same
 
D

Debra Farnham

There's only more thing I can think of

That is to bring all the objects "behind" the rectangle to front. Select
the "disappearing" controls, go to the Format menu and choose Bring to Front
or select the rectangle and choose Send to Back from the Format menu.

Debra
 
G

Guest

That did it ! Thanks

Debra Farnham said:
There's only more thing I can think of

That is to bring all the objects "behind" the rectangle to front. Select
the "disappearing" controls, go to the Format menu and choose Bring to Front
or select the rectangle and choose Send to Back from the Format menu.

Debra
 

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