TexG
Regular
Hi all,
I hve this code here that works great for resizing the columns in a listview control.
Problem is i new to .Net and i havent figured out how to acces this public sub Resizer from a class or module with the call to Resizer(). Also finding it very hard to get access to a form when i am in a class or module.
I have seen lots or answers on the forum that say i need to do a
Dim myform as New Form1
is this dim statment opening up another form?
Anyways thanks for the help and hope the code resizer helps someone else out.
Code.....
Public Sub Resizer()
Dim ColumnHeaderResize As ColumnHeader
For Each ColumnHeaderResize In ListView1.Columns
ColumnHeaderResize.Width = -1
Next
End Sub
I hve this code here that works great for resizing the columns in a listview control.
Problem is i new to .Net and i havent figured out how to acces this public sub Resizer from a class or module with the call to Resizer(). Also finding it very hard to get access to a form when i am in a class or module.
I have seen lots or answers on the forum that say i need to do a
Dim myform as New Form1
is this dim statment opening up another form?
Anyways thanks for the help and hope the code resizer helps someone else out.
Code.....
Public Sub Resizer()
Dim ColumnHeaderResize As ColumnHeader
For Each ColumnHeaderResize In ListView1.Columns
ColumnHeaderResize.Width = -1
Next
End Sub