The above screenshots contains 3 sets of label +customlistview. I click a label to show/hide the corresponding customlistview; once a customlistiview is hidden, I want all views below to move up to occupy the empty space.
In the second screenshot, the city customlistview is hidden and its space is left blank. What can I do to move all views up to fill the blank space?
I tried the code below and it didn't work:
Private Sub Label1_Click
CustomListView1.GetBase.Visible=CustomListView1.GetBase.Visible=False
CustomListView1.GetBase.Height=IIf(CustomListView1.GetBase.Visible, lstClvHeight.Get(0), 0) 'lstClvHeight.Get(0) contains the clv height before being hidden
End Sub
Example project attached.
TIA