Private Sub BtnPull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPull.Click
Me.Hide()
Dim AParams As Array
AParams = TestIt()
Dim F6 As New Form6(AParams)
F6.Show()
End Sub
End Class
Form6 Coding Builds the New Form called F6:
Imports System
Imports System.IO
Imports System.Drawing.Printing
Public Class Form6
Public Sub New(ByVal BParams As Array)
' This call is required by the Windows Form Designer.
InitializeComponent()
SetupForm(BParams)
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub SetupForm(ByVal BParams As Array)
Dim RowCount As Integer
Dim r, c, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, y, z As Integer
x1 = 28
x2 = 69
x3 = 115
x4 = 163
x5 = 208
x6 = 263
x7 = 305
x8 = 344
x9 = 400
x10 = 458
x11 = 556
x12 = 650
x13 = 750
y = 42
TextBox00.Text = BParams(0, 0)
TextBox01.Text = BParams(0, 1)
TextBox02.Text = BParams(0, 2)
TextBox03.Text = BParams(0, 3)
TextBox04.Text = BParams(0, 4)
TextBox05.Text = BParams(0, 5)
TextBox06.Text = BParams(0, 6)
TextBox07.Text = BParams(0, 7)
TextBox08.Text = BParams(0, 8)
TextBox09.Text = BParams(0, 9)
TextBox10.Text = BParams(0, 10)
TextBox11.Text = BParams(0, 11)
TextBox12.Text = BParams(0, 12)
RowCount = BParams.GetUpperBound(0)
If RowCount = 1 Then
Exit Sub
End If
For r = 1 To RowCount - 1
z = 0
For c = 0 To 12
z = y + (35 * (r - 1))
Dim tb As New TextBox
With tb
.Name = "TextBox" & r & c
Select Case c ' position coordinates
Case 0
.Location = New Point(x1, z)
.Text = BParams(r, c)
.Size = New Size(34, 42)
Case 1
.Location = New Point(x2, z)
.Text = BParams(r, c)
.Size = New Size(38, 42)
Case 2
.Location = New Point(x3, z)
.Text = BParams(r, c)
.Size = New Size(39, 42)
Case 3
.Location = New Point(x4, z)
.Text = BParams(r, c)
.Size = New Size(37, 42)
Case 4
.Location = New Point(x5, z)
.Text = BParams(r, c)
.Size = New Size(46, 42)
Case 5
.Location = New Point(x6, z)
.Text = BParams(r, c)
.Size = New Size(35, 42)
Case 6
.Location = New Point(x7, z)
.Text = BParams(r, c)
.Size = New Size(32, 42)
Case 7
.Location = New Point(x8, z)
.Text = BParams(r, c)
.Size = New Size(49, 42)
Case 8
.Location = New Point(x9, z)
.Text = BParams(r, c)
.Size = New Size(42, 42)
Case 9
.Location = New Point(x10, z)
.Text = BParams(r, c)
.Size = New Size(83, 42)
Case 10
.Location = New Point(x11, z)
.Text = BParams(r, c)
.Size = New Size(87, 42)
Case 11
.Location = New Point(x12, z)
.Text = BParams(r, c)
.Size = New Size(92, 42)
Case 12
.Location = New Point(x13, z)
.Text = BParams(r, c)
.Size = New Size(92, 42)
End Select
End With
Me.Controls.Add(tb)
Next
Next
End Sub
Sorwen,
I can't send the form results because of the Security Software we have won't let me send anything through the tek tips. The attahcment is being blocked from sending anything. I can send you an attachment by email though, but I need your email address to do so.
Dataman86