R
Rotsey
Hi,
I have a Listbox in a Panel of SplitContainer.
I want to anchor it so the listbox grows/shrinks vertically with the
resizing the splitcontainer.
This is my code
What happens is it sizes the listbox horizontally about nearly the same size
as the split container width.
_TableList = new MdsListBox();
_TableList.Name = "TableList";
_TableList.Left = 10;
_TableList.Top = 40;
_TableList.Width = 150;
_TableList.Height = 100;
_TableList.Anchor = (AnchorStyles.Left | AnchorStyles.Right |
AnchorStyles.Bottom | AnchorStyles.Top);
I want the size of the listbox set here retained.
rotsey
I have a Listbox in a Panel of SplitContainer.
I want to anchor it so the listbox grows/shrinks vertically with the
resizing the splitcontainer.
This is my code
What happens is it sizes the listbox horizontally about nearly the same size
as the split container width.
_TableList = new MdsListBox();
_TableList.Name = "TableList";
_TableList.Left = 10;
_TableList.Top = 40;
_TableList.Width = 150;
_TableList.Height = 100;
_TableList.Anchor = (AnchorStyles.Left | AnchorStyles.Right |
AnchorStyles.Bottom | AnchorStyles.Top);
I want the size of the listbox set here retained.
rotsey