Results 1 to 6 of 6

Thread: Drag form by any "gray" space rather than just the title-bar

Threaded View

  1. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Drag form by any "gray" space rather than just the title-bar

    Rather than think through all of that, I just took my comprehensive approach.
    Been there, done that.

    Regarding the looping, it just appears you are looping thru every control twice. Once when setting the scalemode and again during the setup routine. Removing the scalemode is a bit more efficient, but at the cost of arrays. I looked at that process and kinda cringed a bit.

    I doubt this will ever come into play, but I don't see a workaround unless you can build off an image array... You are creating one image control per form, per container. VB has a limit of how many controls can be used and arrays are somewhat excluded. I don't recall if those created with Controls.Add() count towards that limit or not? Like I said, it is unlikely this scenario would occur unless the form already has a ton of controls, many of which are containers.

    Edited: Though I've seen some weird stuff in my days, like a 12x12 grid composed of picturebox controls when a label or image control would have sufficed and used far less resources.
    Last edited by LaVolpe; Apr 16th, 2017 at 05:12 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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