Hello all!
I am trying to dynamically format the height of a gallery ('subGallery') inside of another gallery ('mainGallery').
My app saves each item a user selects form a combo-box in a form, and displays each of those items in 'mainGallery' with separators between each of them. When the user selects an item in 'mainGallery' , a form will pop-up that asks the user to fill out a Comments field and an Attachments field. When they submit the details from the two-fields from the pop-up, the details will be shown for that item selected in 'mainGallery'. However, I decided to put another gallery ('subGallery') inside 'mainGallery' to show ALL of the attachments inserted into the pop-up by the user. 'mainGallery' just shows the Comments typed in by the user and the Date & Time from when they submitted the pop-up from when they clicked on an item.
EX: A user selects "January" and "February" from the combo-box of my main form, which populates the 'mainGallery' with each item (separated by a separator). When they click into each item, a pop-up appears (which holds another form) that prompts them to write a comment and attach however many attachments they'd like. For "January", the user writes a comment and attaches 2 attachments. For "February", the user writes a comment and attaches 1 attachment.
If my attachments field inside the form of the pop-up is called 'attachmentsField', and I have a Label inside my 'subGallery' called 'label1' , what code would I put inside the Height property of 'label1' to dynamically format the height depending on however many attachments are inserted inside the pop-up of my form?

Report
All responses (
Answers (