@imughal
What I think you are saying is "when I hide a Card in my form it creates a blank space at the end of the form. How do I remove it?" The solution is to change the Width property of your form based on how many cards are Visible.
Lets' say you have 4 cards in your form that are Visible to start. Each card has a Height of 100. The form Height is 400.
When you hide Card 3 there is blank space at the end of the form
The solution is to set the Height property of the form to this code. It will adjust the height of the form when a card is hidden
(
If(Card1.Visible,1,0)
+If(Card2.Visible,1,0)
+If(Card3.Visible,1,0)
+If(Card4.Visible,1,0)
) * 100
The end result will have no extra space.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."