Results 1 to 9 of 9

Thread: Delete Array control

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Delete Array control

    Hi

    Is there some way to delete all controls in forms (shape ) is a array, without to click each and to delete?

    Because over shape is label control then I need to move Label control and after to delete shape control and go back Label control to original position

    Is there some way to delete all control (shape array ) ?


    tia

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Delete Array control

    If you're asking how to delete all controls from the form then it can be done by pressing CTRL+A and then DELETE key.
    You ca n also select all controls from the Edit > Select All menu or with your mouse (press it down and hold it and drag it to select all controls).
    Sorry if I misunderstood you.

  3. #3

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: Delete Array control

    Sorry

    But, I want to delete only a control (shape), but It is a array

  4. #4

  5. #5

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: Delete Array control

    Thank

    Only a control, but It is array with 50 members

  6. #6

  7. #7

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: Delete Array control

    Yes, but in my case I do not necessary this control , alll index must to deleted

  8. #8
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Delete Array control

    I'm afraid you missed my point so allow me to explain...

    When you design a form you don't necessary have to create all controls at design time - vast majority can be created at runtime instead.
    If this was your approach from the beginning you wouldn't have to worry about deleting 50 controls - rather one instead.

    I hope it's clear now.
    Regards.

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

    Re: Delete Array control

    Quote Originally Posted by mutley View Post
    Hi

    Is there some way to delete all controls in forms (shape ) is a array, without to click each and to delete?

    Because over shape is label control then I need to move Label control and after to delete shape control and go back Label control to original position

    Is there some way to delete all control (shape array ) ?


    tia
    1. Move the label control out of the way
    2. Click your mouse outside the stacked shape controls & hold the mouse button down
    3. Drag your mouse so all the shape controls are inside the drag rectangle
    4. Release the mouse and hit the delete key.
    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