ayoung
09-07-2003, 10:33 PM
What it does is fills in spots as the uses need 1, 2, 3, or all 4 frames.
Can this be simplified any? LOL Have fun!!
If Check1.Value = 1 Then
frmMain.frmBF.Visible = True
frmMain.frmBF.Left = 360
frmMain.frmBF.Top = 360
frmMain.frmL.Left = 2760
frmMain.frmL.Top = 360
Else
End If
If Check2.Value = 1 Then
frmMain.frmL.Visible = True
If Check1.Value = 1 Then GoTo skip
frmMain.frmL.Left = 360
frmMain.frmL.Top = 360
skip:
Else
frmMain.frmL.Left = 2760
frmMain.frmL.Top = 360
End If
If Check3.Value = 1 Then
frmMain.frmD.Visible = True
If Check1.Value = 0 And Check2.Value = 0 Then
frmMain.frmD.Left = 360
frmMain.frmD.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 Then
frmMain.frmD.Left = 2760
frmMain.frmD.Top = 360
Else
frmMain.frmD.Left = 360
frmMain.frmD.Top = 2160
End If
End If
End If
If Check4.Value = 1 Then
frmMain.frmBT.Visible = True
If Check1.Value = 0 And Check2.Value = 0 And Check3.Value = 0 Then
frmMain.frmBT.Left = 360
frmMain.frmBT.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 0 And Check3.Value = 1 Then
frmMain.frmBT.Left = 2760
frmMain.frmBT.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 And Check3.Value = 1 Or Check1.Value = 1 And Check2.Value = 1 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 And Check3.Value = 1 Then
frmMain.frmBT.Left = 360
frmMain.frmBT.Top = 2160
Else
frmMain.frmBT.Left = 2760
frmMain.frmBT.Top = 2160
End If
End If
End If
End If
If Check1.Value = 0 Then frmMain.frmBF.Visible = False
If Check2.Value = 0 Then frmMain.frmL.Visible = False
If Check3.Value = 0 Then frmMain.frmD.Visible = False
If Check4.Value = 0 Then frmMain.frmBT.Visible = False
Can this be simplified any? LOL Have fun!!
If Check1.Value = 1 Then
frmMain.frmBF.Visible = True
frmMain.frmBF.Left = 360
frmMain.frmBF.Top = 360
frmMain.frmL.Left = 2760
frmMain.frmL.Top = 360
Else
End If
If Check2.Value = 1 Then
frmMain.frmL.Visible = True
If Check1.Value = 1 Then GoTo skip
frmMain.frmL.Left = 360
frmMain.frmL.Top = 360
skip:
Else
frmMain.frmL.Left = 2760
frmMain.frmL.Top = 360
End If
If Check3.Value = 1 Then
frmMain.frmD.Visible = True
If Check1.Value = 0 And Check2.Value = 0 Then
frmMain.frmD.Left = 360
frmMain.frmD.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 Then
frmMain.frmD.Left = 2760
frmMain.frmD.Top = 360
Else
frmMain.frmD.Left = 360
frmMain.frmD.Top = 2160
End If
End If
End If
If Check4.Value = 1 Then
frmMain.frmBT.Visible = True
If Check1.Value = 0 And Check2.Value = 0 And Check3.Value = 0 Then
frmMain.frmBT.Left = 360
frmMain.frmBT.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 0 And Check3.Value = 1 Then
frmMain.frmBT.Left = 2760
frmMain.frmBT.Top = 360
Else
If Check1.Value = 1 And Check2.Value = 0 And Check3.Value = 1 Or Check1.Value = 1 And Check2.Value = 1 And Check3.Value = 0 Or Check1.Value = 0 And Check2.Value = 1 And Check3.Value = 1 Then
frmMain.frmBT.Left = 360
frmMain.frmBT.Top = 2160
Else
frmMain.frmBT.Left = 2760
frmMain.frmBT.Top = 2160
End If
End If
End If
End If
If Check1.Value = 0 Then frmMain.frmBF.Visible = False
If Check2.Value = 0 Then frmMain.frmL.Visible = False
If Check3.Value = 0 Then frmMain.frmD.Visible = False
If Check4.Value = 0 Then frmMain.frmBT.Visible = False