Results 1 to 8 of 8

Thread: what does MdiLayout.ArrangeIcons do?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    what does MdiLayout.ArrangeIcons do?

    apprently it doesnt do anything when I call it in my MDI form...

    someMDIForm.LayoutMdi(MdiLayout.ArrangeIcons)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    bump

    couldnt find detailed info on this, help
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I'm too lazy to actually look at code right now, but if I remember correctly, arrange icons arranges the icons when your MDI children are minimized.

    To say that another way, open two or more child forms, minimize them, then drag them around to rearrange. Then arrange icons and they snap to a neat arrangement.

    HTH,
    Mike

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Mike Hildner
    I'm too lazy to actually look at code right now, but if I remember correctly, arrange icons arranges the icons when your MDI children are minimized.

    To say that another way, open two or more child forms, minimize them, then drag them around to rearrange. Then arrange icons and they snap to a neat arrangement.

    HTH,
    Mike
    wooh yeah exactly thank you, couldnt have figured that out on my own
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5
    Lively Member
    Join Date
    Mar 2008
    Location
    Charlotte, NC USA
    Posts
    70

    Re: what does MdiLayout.ArrangeIcons do?

    Quote Originally Posted by MrPolite View Post
    wooh yeah exactly thank you, couldnt have figured that out on my own
    Everyone's gonna hate me for bumping a 5+ year old thread....but I have this info to add:

    When forms are minimized and "arrange icons" is called it does indeed arrange the icons. BUT, so does a "cascade"....AND it has the added benefit of arranging them when they are not minimized as well.

    So, for what purpose is arrange icons if the cascade function can do all the same functionality and some?

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

    Re: what does MdiLayout.ArrangeIcons do?

    cascade un-minimizes (but not maximized - WindowState = Normal) the forms and arranges them in a cascading form... arrange icons affects MINIMIZED forms... arranging them left to right, bottom to top... Arrange Icons and Cascade are different operations...

    -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??? *

  7. #7
    Lively Member
    Join Date
    Mar 2008
    Location
    Charlotte, NC USA
    Posts
    70

    Re: what does MdiLayout.ArrangeIcons do?

    Quote Originally Posted by techgnome View Post
    cascade un-minimizes (but not maximized - WindowState = Normal) the forms and arranges them in a cascading form... arrange icons affects MINIMIZED forms... arranging them left to right, bottom to top... Arrange Icons and Cascade are different operations...

    -tg
    on my machine cascade does not do any "un-minimizing". If you call it when they are minimized it mimics the behavior of "arrange icons". If the forms are not max size and not minimized then it cascades them for me.

    Maybe I am doing something wrong then? How do I set it up where it acts like yours does? I thought I had the default environment settings....

    its a simple routine that calls
    Code:
      Me.LayoutMdi(MdiLayout.ArrangeIcons)
    so I hope I haven't messed up the code, lol

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: what does MdiLayout.ArrangeIcons do?

    Cascade appears to affect both normal and minimised windows, while ArrangeIcons affects only minimised windows. If you want to arrange your minimised windows without affecting your normal windows then you need to call ArrangeIcons.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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