Text on a Box

B

Barnsey

Does anybody no if there is a way you can have a box round some controls and then have the text on top of the box as you do with the Frame controrl within Visual Basic.

Thanks in Advance

Daniel
 
J

Jerry Thomas [MSFT]

A text field can not include other fields.

Would a Section work to group some of your fields?
The border can be hidden or colored.
All of the 'contained' controls can be hidden or displayed with just one
Conditional Formatting statement on the Section instead of each individual
control.

One way to get a very precise layout is to use a Layout table.
For example, insert a 5 col x 4 row Layout table
Then Merge a couple of the cells in the top row where you want the text.
This could be static fields labels or could be a dynamic text field.
Set other controls in the different cells - Left align one and Right Align
another.
The outer border of the table could be set to a color or can be hidden.

Does that help?
--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.


Barnsey said:
Does anybody no if there is a way you can have a box round some controls
and then have the text on top of the box as you do with the Frame controrl
within Visual Basic.
 

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