|
-
Mar 13th, 2002, 11:36 AM
#1
Thread Starter
Junior Member
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.
-
Mar 13th, 2002, 11:47 AM
#2
Junior Member
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.
-
Mar 13th, 2002, 12:08 PM
#3
Thread Starter
Junior Member
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.
-
Mar 13th, 2002, 02:07 PM
#4
Fanatic Member
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.
-
Mar 13th, 2002, 02:08 PM
#5
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|