E
Enkidu
I'm trying to add TextBoxes in a square 'array' into a GroupBox. It
looks like I have to, for each TextBox, get the size of the GroupBox,
calculate position of each TextBox, set the Location of the TextBox to a
new Location object with the calculated coordinates and the TextBox
should then be located in the correct position. I'd much rather say, for
example, left gap equals x%, top gap = y%, draw the TextBox, dimensions
a% by b%, move right z%, draw the next TextBox and so on.
What I'm aiming for is a square of TextBoxes which form a playing grid,
much like a chessboard.
I guess the answer to the question is "I wouldn't do it that way, and I
suggest you do it this way...." sort of thing.
Any help would be appreciated.
Cheers,
Cliff
looks like I have to, for each TextBox, get the size of the GroupBox,
calculate position of each TextBox, set the Location of the TextBox to a
new Location object with the calculated coordinates and the TextBox
should then be located in the correct position. I'd much rather say, for
example, left gap equals x%, top gap = y%, draw the TextBox, dimensions
a% by b%, move right z%, draw the next TextBox and so on.
What I'm aiming for is a square of TextBoxes which form a playing grid,
much like a chessboard.
I guess the answer to the question is "I wouldn't do it that way, and I
suggest you do it this way...." sort of thing.
Any help would be appreciated.
Cheers,
Cliff