473,902 Members | 4,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change the height of the 'detail' part of a form?

379 Contributor
I know how to set this Property, but what I'm really asking is how I can set it to something smaller than it wants to be.

On a continuous subform, I have a set of fields (all at the bottom of the Detail section) that normally I want to be invisible. On the click of a button, I want to set all their Visible properties to True.

So when the fields are invisible, I'd like to set the height of the Detail section to exclude the "real estate" reserved for the invisible fields, and then, on the click of the button, reset the height at the same time that I set the visibility properties.

Can this be done?
Jun 30 '11 #1
39 12809
12,516 Recognized Expert Moderator MVP
You can if you first move all the controls out of that area. Then move them back before you make them visible.
Jun 30 '11 #2
379 Contributor
Rabbit, move them where? Do you mean just to a part of the detail that will be visible? Or, maybe, to the footer and then into the detail?
Jun 30 '11 #3
12,516 Recognized Expert Moderator MVP
To a part that will be visible. Probably from whatever coordinate they're at to (0,0). You will, of course, have to keep track of their old coordinates so you can move them back when you need to.
Jun 30 '11 #4
379 Contributor
So I thought that just setting the Top property would do it, but that did nothing. What Property do I set? And what are the units? inches?
Jun 30 '11 #5
379 Contributor
Maybe I should mention that I'm really just trying to move a single Tab Control, but it looks like all the fields on all the tabs are sort of "stuck" and prevent the Tab Control from moving freely. Does that even make sense?

I am able to make everything invisible by just setting the Tab Control's visibility, so I thought that I could move the Tab Control and all the fields would come right along.
Jun 30 '11 #6
12,516 Recognized Expert Moderator MVP
You'll have to bring all the controls up, then bring the tab control up, and finally shorten the height of the tab control.
Jun 30 '11 #7
379 Contributor
Wow, I really have to handle each control and label individually? And by "bring up", I'm assuming you are talking about setting the Visible and Top properties? I sort of need specific words.
Jun 30 '11 #8
12,516 Recognized Expert Moderator MVP
Yes, that's what I mean. You could, conceivably, store all this information in a table and just loop through it. That way, if you add, rename, or delete controls, you don't have to constantly rewrite your code. The table could store the name of the control, the original top, and the "hidden" top.
Jun 30 '11 #9
379 Contributor
Since I've never done anything like this, I wonder if you'd be so kind as to post an example of what this would look like. Thanks!
Jun 30 '11 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can dynamically resize an object on the form in the form's Form_Resize method when a user resizes the form, both horizontally and vertically. Thanks, s/KAM
by: ILCSP | last post by:
Hello, is there a way to display a button in the detail part of a continous form ONLY for the last record? I want to have an "ADD" button at in the same row as the last record, but if I place it there, it becomes an all or nothing issue- it displays in all the records. Is there a way I can first set the property to invisible and then using some code to display this button only in the last row? Thanks.
by: xbox | last post by:
Hi, Its weird bu I cant seem to change the height of the textbox that I place on a form at design time. ideas? Thanks in advance, xbox
by: K.N.Ranjit | last post by:
Hi, This is the 4th mail I'm sending regarding this problem. I'm really not been able to sort this problem out.I'm not been able to change my starting position of my cordinates from top-left to bottom-left of my form.Thrice I got the reply but unfortunately it did'nt work.Here is my coding. private sub form_load(...) dim y as integer y=me.height location.y = 0-y
by: green51 | last post by:
I am tracking projects with the month, start date, end date and the individuals assigned to the project. There will be anywhere between 1 and 14 individuals assigned to the project. I have a query that groups all of this information together their name are in a combo box; I also have set the CanShrink box to “YES”. The extra white space is in the Detail part of the report. My problem is when I generate a report the same amount of space between...
by: beenanic | last post by:
How I can read a parameter from a multi-part form?
by: happyse27 | last post by:
Hi All, How do I change the height of the main menu as the height is inconsistent due to some of main menu's item stretches to 2 rows while, the other main menu's items are stretched to 1 row. Code is below Cheers... Andrew
by: gmiotke | last post by:
I know that this is easy for those that know but alas this is not me ;) I have a multi part form that is going to write to a dB. As a point of reference I can offer geico.com (i.e., the quote process) as a model for my project. I need to write a record on the first page and then use the auto number generated from this to populate the child records with the parent's key field. What I was hoping to do is write the record and then...
by: sueb | last post by:
I have a new single-table database (it hasn't been released to the users at all yet) in which I've created two forms that look at the same data: one form which has a spread-sheet-like format, and displays a few fields for all the records in the table, and another form that displays all the fields for a single record at a time. I'd like to be able to have a button on the summary form that opens the detail form for the particular record selected...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.