Rx_
Nothing In Moderation
- Local time
- Today, 03:35
- Joined
- Oct 22, 2009
- Messages
- 2,803
Need a Form and the listbox (read only) to automatically grow in height to display all records without the scrollbar showing up in the listbox.
A short pop-up form uses an argument to open. The form has some header information on top and a Listbox on the bottom.
The form only needs to be Tall enough (height) to keep the Listbox from truning on the scroll bar. The List box typically has 4 to 16 records (readonly)
If the form opens with 0 to 4 records, the listox can default to a height to show 4 records.
If the form opens with more than 4 records (lets say 12 records), both the form and the list box need to grow in height, to prevent the scroll bar from appearing.
I use to do this in VB6 years ago. Thought somone might recommend some code or method to achieve this.
A short pop-up form uses an argument to open. The form has some header information on top and a Listbox on the bottom.
The form only needs to be Tall enough (height) to keep the Listbox from truning on the scroll bar. The List box typically has 4 to 16 records (readonly)
If the form opens with 0 to 4 records, the listox can default to a height to show 4 records.
If the form opens with more than 4 records (lets say 12 records), both the form and the list box need to grow in height, to prevent the scroll bar from appearing.
I use to do this in VB6 years ago. Thought somone might recommend some code or method to achieve this.