gchq
Well-known member
- Joined
- Dec 14, 2007
- Messages
- 168
- Programming Experience
- 10+
Hi there
As part of PDF production within a WinForm I need to define the columns as a percentage of the width :-
The problem I am hitting is when the quantity of columns is dynamic..
I've tried a number of variations like....
....including ReDim - but VS kicks everything in to touch.
Any ideas?
Thanks
As part of PDF production within a WinForm I need to define the columns as a percentage of the width :-
VB.NET:
Dim vWidths() As Integer = {30, 10, 20, 20, 20}
The problem I am hitting is when the quantity of columns is dynamic..
I've tried a number of variations like....
VB.NET:
Dim vWidths() As Integer
Select Case vColumns
Case 2
vWidths = {34, 33, 33}
Case 3
vWidths(34, 22, 22, 22)
End Select
....including ReDim - but VS kicks everything in to touch.
Any ideas?
Thanks