PDA

Click to See Complete Forum and Search --> : Visual Studio 2005 automation


Andy
Feb 22nd, 2007, 10:13 AM
Not sure if this is the right forum but here goes:

I need to create a macro that formats selected controls for me. I'm finding myself selecting a group of textboxes, collapsing the space between them and them selecting the group again minus the one on top, bring down the selected group down two arrow clicks and repeating that untill all boxes are a neat two pixel apart from each other.

Ive not found good info out there on something that will help me. Can anyone give me some good tips and possibly some code to learn from?

Thanks all :D:D

techgnome
Feb 22nd, 2007, 10:16 AM
Select your controls.... then in the toolbar, there's a button that will evenly space the controls.... and there's another button not too far away that reduces the spacing between.....

-tg

Andy
Feb 22nd, 2007, 10:24 AM
Right...that's how i do it now....for each text box. :(
I was trying to figure out a way to simply select all the boxes and run a macro that would do all that for me.

It really sux when you have a lot of them LOL

Andy
Feb 22nd, 2007, 10:25 AM
it would be sweet if you could alter the code behind those layout buttons...But, MS isn't exactly liberal with some of their code LOL