Results 1 to 4 of 4

Thread: Visual Studio 2005 automation

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Visual Studio 2005 automation

    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

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Visual Studio 2005 automation

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: Visual Studio 2005 automation

    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

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Re: Visual Studio 2005 automation

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width