Results 1 to 5 of 5

Thread: Any magicians in the crowd?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    USA
    Posts
    20

    Any magicians in the crowd?

    Greetings all,

    What I would like to be able to do is start with a form and a column of textboxes. I would then like the code to be able to make some comparisons and hide appropriate textboxes. This I can do, but the trick I would like to learn (if anyone could teach me or advise me) is to have the remaining boxes move up along the form. So the end result is a column of text boxes (and other controls) that do not appear to the user as if there are any missing.

    thanks,
    Harbinger.

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Location
    Omaha, NE
    Posts
    18
    Instead of hiding and moving the textboxes, why not just move the contents of the lower textboxes to the higher textboxes, then hide the lower ones? This keeps a continuous column of visible controls.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2002
    Location
    USA
    Posts
    20
    Actually, this is similar to what I had planned originally ...
    my main issue with this is that what is really happening is for each 'textbox' I mentioned there is really 1 label, 6 text boxes, 4 checkboxes and a set of radio buttons... which of course can all be moved as suggested ... however, on top of that the data for these fields is brought in from a file, and can then be adjusted by the user and must then be written to file again keeping the place of the 'hidden' fields where they were in the original file. I can do all this using the method suggested, but I was hoping to find a simple solution that would manipulate the form instead of the data.

    Thanks for the reply mkiihne.

  4. #4
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    Here's a little demo. If you change it slightly, you could make it suit your needs. I added lots of comments so it'll be easier for you to follow the program logic.

    Hope it helps.

  5. #5
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    HERE:

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