0
votes

I am working with Report Builder in SQL Server 2016.

I have 3 text boxes Textbox1, Textbox2 and Textbox3 one after another horizontally. They have same width and same height. Now I want to have uniform horizontal gap between those text boxes i.e. the horizontal gap between Textbox1 and Textbox2 should be same as the horizontal gap between Textbox2 and Textbox3. How can I do that?

Thanks

UPDATE:

Print screens of menus of Report Builder:

Home Menu

Insert Menu

View Menu

2
What happens when you set the distance between them to the same value, either in points or inches?Brian
How do you set the distance between them? I dont know this.Syed
There is a properties box for the selected control which typically shows in the bottom right hand corner of visual studio.Dale K
The OP is using Report Builder in which case the properties window is accessed from the the View menu.Alan Schofield
I know the property window of a selected control but which property I can use to set its distance from another control?Syed

2 Answers

1
votes

Other than the guide that appears when you put components close together (5 points, as I recall) there's no element that says "keep them this far apart. To do what you describe, you have to do some math.

So let's say that your text boxes are 1.5 inches wide and you want them an inch apart.

First, you set the left property of TextBox1 to, say, 1.25 inches (for the margin).

Next, you set the left property of TextBox2 to 3.75 inches - the margin plus the width for TextBox1 plus your desired inch space.

Finally, you set the left property of TextBox3 to 6.25 inches - the margin plus the width for TextBox1 width plus the first desired inch space plus the width for TextBox2 plus the second desired inch space.

Does that make sense?

0
votes

You can either go to the properties of the textboxes under Position > Left/Top, or normally (I am not sure for this version) you find under Home > Alignment > Equal spacing while you select all textboxes.