VERSION 5.00 Begin VB.Form Form1 AutoRedraw = -1 'True BackColor = &H00C0FFFF& Caption = "Radiolabeling kinetics simulation - simple hypothetical pathway" ClientHeight = 6465 ClientLeft = 60 ClientTop = 345 ClientWidth = 9480 FillColor = &H00C0FFFF& FillStyle = 0 'Solid LinkTopic = "Form1" ScaleHeight = 6465 ScaleWidth = 9480 Begin VB.PictureBox Picture4 BackColor = &H80000009& Height = 1455 Left = 8520 ScaleHeight = 1395 ScaleWidth = 675 TabIndex = 77 Top = 360 Width = 735 Begin VB.Label Label53 BackStyle = 0 'Transparent Caption = "D" Height = 255 Left = 480 TabIndex = 82 Top = 1080 Width = 255 End Begin VB.Label Label52 BackStyle = 0 'Transparent Caption = "C" Height = 255 Left = 480 TabIndex = 81 Top = 840 Width = 255 End Begin VB.Label Label51 BackStyle = 0 'Transparent Caption = "B" Height = 255 Left = 480 TabIndex = 80 Top = 600 Width = 255 End Begin VB.Label Label50 BackStyle = 0 'Transparent Caption = "A" Height = 255 Left = 480 TabIndex = 79 Top = 360 Width = 255 End Begin VB.Label Label49 BackStyle = 0 'Transparent Caption = "E" Height = 255 Left = 480 TabIndex = 78 Top = 120 Width = 255 End End Begin VB.TextBox Text24 Height = 288 Left = 3240 TabIndex = 71 Text = "0.2" Top = 1200 Width = 492 End Begin VB.TextBox Text23 Height = 285 Left = 6600 TabIndex = 67 Text = "0.2" Top = 2400 Width = 495 End Begin VB.TextBox Text22 Height = 285 Left = 4800 TabIndex = 66 Text = "0.2" Top = 2400 Width = 495 End Begin VB.TextBox Text21 Height = 285 Left = 3000 TabIndex = 64 Text = "0.2" Top = 2400 Width = 495 End Begin VB.TextBox Text20 Height = 285 Left = 8760 TabIndex = 61 Text = "40" Top = 5880 Width = 495 End Begin VB.TextBox Text19 Height = 285 Left = 6360 TabIndex = 57 Text = "0.2" Top = 3720 Width = 495 End Begin VB.PictureBox Picture3 BackColor = &H80000009& BorderStyle = 0 'None Height = 2010 Left = 6960 Picture = "Modelkv.frx":0000 ScaleHeight = 2010 ScaleWidth = 2010 TabIndex = 55 Top = 3840 Width = 2010 End Begin VB.TextBox Text18 Height = 285 Left = 2880 TabIndex = 54 Text = "500" Top = 5880 Width = 495 End Begin VB.TextBox Text17 Height = 285 Left = 3360 TabIndex = 53 Text = "50" Top = 3720 Width = 495 End Begin VB.TextBox Text16 Height = 285 Left = 360 TabIndex = 52 Text = "40000" Top = 3720 Width = 615 End Begin VB.TextBox Text15 Height = 288 Left = 1800 TabIndex = 46 Text = "16" Top = 1200 Width = 492 End Begin VB.Frame Frame5 Caption = "Pool E" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 1920 TabIndex = 41 Top = 120 Width = 972 Begin VB.TextBox Text14 Height = 288 Left = 360 TabIndex = 45 Text = "40" Top = 600 Width = 492 End Begin VB.TextBox Text13 Height = 288 Left = 360 TabIndex = 42 Text = "1000" Top = 240 Width = 492 End Begin VB.Label Label29 Caption = "E2" Height = 252 Left = 120 TabIndex = 44 Top = 600 Width = 252 End Begin VB.Label Label28 Caption = "E1" Height = 252 Left = 120 TabIndex = 43 Top = 240 Width = 252 End End Begin VB.TextBox Text12 Height = 288 Left = 1080 TabIndex = 38 Text = "0.05" Top = 2400 Width = 492 End Begin VB.CommandButton Command2 Caption = "End" Height = 372 Left = 7440 TabIndex = 31 Top = 840 Width = 612 End Begin VB.PictureBox Picture2 BackColor = &H80000009& BorderStyle = 0 'None Height = 2010 Left = 3960 Picture = "Modelkv.frx":D3BA ScaleHeight = 2010 ScaleWidth = 2010 TabIndex = 25 Top = 3840 Width = 2010 End Begin VB.TextBox Text10 Height = 288 Left = 6600 TabIndex = 24 Text = "48" Top = 1920 Width = 492 End Begin VB.TextBox Text9 Height = 288 Left = 4800 TabIndex = 23 Text = "36" Top = 1920 Width = 492 End Begin VB.TextBox Text8 Height = 288 Left = 3000 TabIndex = 22 Text = "24" Top = 1920 Width = 492 End Begin VB.Frame Frame4 Caption = "Pool D" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 7320 TabIndex = 19 Top = 1800 Width = 972 Begin VB.TextBox Text7 Height = 288 Left = 360 TabIndex = 21 Text = "20" Top = 600 Width = 492 End Begin VB.TextBox Text6 Height = 288 Left = 360 TabIndex = 20 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label25 Caption = "D2" Height = 252 Left = 120 TabIndex = 37 Top = 600 Width = 252 End Begin VB.Label Label24 Caption = "D1" Height = 252 Left = 120 TabIndex = 36 Top = 240 Width = 252 End End Begin VB.Frame Frame3 Caption = "Pool C" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 5520 TabIndex = 14 Top = 1800 Width = 972 Begin VB.TextBox Text5 Height = 288 Left = 360 TabIndex = 18 Text = "12" Top = 600 Width = 492 End Begin VB.TextBox Text4 Height = 288 Left = 360 TabIndex = 17 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label19 Caption = "C2" Height = 252 Left = 120 TabIndex = 16 Top = 600 Width = 252 End Begin VB.Label Label18 Caption = "C1" Height = 252 Left = 120 TabIndex = 15 Top = 240 Width = 252 End End Begin VB.Frame Frame2 Caption = "Pool B" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 3720 TabIndex = 9 Top = 1800 Width = 972 Begin VB.TextBox Text3 Height = 288 Left = 360 TabIndex = 11 Text = "9" Top = 600 Width = 492 End Begin VB.TextBox Text2 Height = 288 Left = 360 TabIndex = 10 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label17 Caption = "B2" Height = 252 Left = 120 TabIndex = 13 Top = 600 Width = 252 End Begin VB.Label Label16 Caption = "B1" Height = 252 Left = 120 TabIndex = 12 Top = 240 Width = 252 End End Begin VB.Frame Frame1 Caption = "Pool A" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 972 Left = 1920 TabIndex = 6 Top = 1800 Width = 972 Begin VB.TextBox Text11 Height = 288 Left = 360 TabIndex = 34 Text = "6" Top = 600 Width = 492 End Begin VB.TextBox Text1 Height = 288 Left = 360 TabIndex = 7 Text = "0" Top = 240 Width = 492 End Begin VB.Label Label14 Caption = "A2" Height = 252 Left = 120 TabIndex = 35 Top = 600 Width = 252 End Begin VB.Label Label15 Caption = "A1" Height = 252 Left = 120 TabIndex = 8 Top = 240 Width = 252 End End Begin VB.PictureBox Picture1 BackColor = &H80000009& BorderStyle = 0 'None Height = 2010 Left = 1080 Picture = "Modelkv.frx":1A774 ScaleHeight = 2010 ScaleWidth = 2010 TabIndex = 5 Top = 3840 Width = 2010 End Begin VB.CommandButton Command1 Caption = "Start" Height = 372 Left = 7440 TabIndex = 0 Top = 240 Width = 612 End Begin VB.Label Label12 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nCi. nmol(-1)" Height = 495 Index = 5 Left = 0 TabIndex = 91 Top = 2400 Width = 735 WordWrap = -1 'True End Begin VB.Label Label40 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Km = nmol.gfw (-1)" Height = 255 Index = 2 Left = 6360 TabIndex = 90 Top = 3120 Width = 1935 WordWrap = -1 'True End Begin VB.Label Label40 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Vmax = nmol.min(-1).gfw (-1)" Height = 255 Index = 1 Left = 3360 TabIndex = 89 Top = 3120 Width = 2295 WordWrap = -1 'True End Begin VB.Label Label40 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. min(-1). gfw (-1)" Height = 495 Index = 0 Left = 840 TabIndex = 88 Top = 2760 Width = 1095 WordWrap = -1 'True End Begin VB.Label Label12 BackStyle = 0 'Transparent Caption = "nmol.gfw(-1)" Height = 255 Index = 4 Left = 8400 TabIndex = 87 Top = 2400 Width = 1095 WordWrap = -1 'True End Begin VB.Label Label12 BackStyle = 0 'Transparent Caption = "nCi.nmol(-1)" Height = 255 Index = 3 Left = 8400 TabIndex = 86 Top = 2040 Width = 1095 WordWrap = -1 'True End Begin VB.Label Label12 BackStyle = 0 'Transparent Caption = "nCi.nmol(-1)" Height = 255 Index = 2 Left = 3000 TabIndex = 85 Top = 360 Width = 975 WordWrap = -1 'True End Begin VB.Label Label12 BackStyle = 0 'Transparent Caption = "nmol.gfw(-1)" Height = 255 Index = 1 Left = 3000 TabIndex = 84 Top = 720 Width = 975 WordWrap = -1 'True End Begin VB.Label Label38 BackStyle = 0 'Transparent Caption = "Key:" Height = 255 Index = 1 Left = 8640 TabIndex = 83 Top = 120 Width = 495 End Begin VB.Label Label48 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Rates:" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 5520 TabIndex = 76 Top = 120 Width = 735 End Begin VB.Label Label47 BackStyle = 0 'Transparent Caption = "D3 = (Vm4.C2)/(Km4+C2)" Height = 255 Left = 4935 TabIndex = 75 Top = 1080 Width = 2175 End Begin VB.Label Label46 BackStyle = 0 'Transparent Caption = "C3 = (Vm3.B2)/(Km3+B2)" Height = 255 Left = 4935 TabIndex = 74 Top = 840 Width = 2175 End Begin VB.Label Label45 BackStyle = 0 'Transparent Caption = "B3 = (Vm2.A2)/(Km2+A2)" Height = 255 Left = 4935 TabIndex = 73 Top = 600 Width = 2175 End Begin VB.Label Label31 BackStyle = 0 'Transparent Caption = "A4 = (Vm1.E2)/(Km1+E2)" Height = 255 Left = 4920 TabIndex = 72 Top = 360 Width = 2055 End Begin VB.Label Label39 BackStyle = 0 'Transparent Caption = "A4; Vm1 " Height = 255 Left = 2565 TabIndex = 70 Top = 1240 Width = 615 End Begin VB.Label Label38 BackStyle = 0 'Transparent Caption = "D3; Vm4" Height = 255 Index = 0 Left = 6600 TabIndex = 69 Top = 2700 Width = 735 End Begin VB.Label Label37 BackStyle = 0 'Transparent Caption = "C3; Vm3" Height = 255 Left = 4800 TabIndex = 68 Top = 2700 Width = 615 End Begin VB.Label Label36 BackStyle = 0 'Transparent Caption = "B3; Vm2" Height = 255 Left = 3000 TabIndex = 65 Top = 2700 Width = 615 End Begin VB.Label Label20 BackStyle = 0 'Transparent Caption = "B3; Km2" Height = 255 Left = 3000 TabIndex = 63 Top = 1695 Width = 615 End Begin VB.Label Label35 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Pool Size nmol.gfw(-1)" Height = 495 Left = 7320 TabIndex = 62 Top = 5880 Width = 1335 WordWrap = -1 'True End Begin VB.Label Label34 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Rate nmol. min(-1). gfw (-1)" Height = 975 Left = 6120 TabIndex = 60 Top = 4560 Width = 735 WordWrap = -1 'True End Begin VB.Label Label11 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 6960 TabIndex = 59 Top = 5880 Width = 135 End Begin VB.Label Label5 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 6840 TabIndex = 58 Top = 5760 Width = 135 End Begin VB.Label Label4 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Rate versus Pool Size" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 6960 TabIndex = 56 Top = 3480 Width = 2055 End Begin VB.Label Label22 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "D3; Km4" Height = 240 Left = 6480 TabIndex = 51 Top = 1695 Width = 855 End Begin VB.Label Label21 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "C3; Km3 " Height = 255 Left = 4720 TabIndex = 50 Top = 1700 Width = 735 End Begin VB.Label Label33 BackStyle = 0 'Transparent Caption = "In" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 480 TabIndex = 49 Top = 1680 Width = 255 End Begin VB.Label Label32 BackStyle = 0 'Transparent Caption = "Out" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 480 TabIndex = 48 Top = 1200 Width = 375 End Begin VB.Label Label30 BackStyle = 0 'Transparent Caption = "A4; Km1" Height = 255 Left = 1120 TabIndex = 47 Top = 1240 Width = 615 End Begin VB.Line Line16 BorderWidth = 2 X1 = 2280 X2 = 2400 Y1 = 1680 Y2 = 1800 End Begin VB.Line Line15 BorderWidth = 2 X1 = 2520 X2 = 2400 Y1 = 1680 Y2 = 1800 End Begin VB.Line Line14 BorderWidth = 2 X1 = 2400 X2 = 2400 Y1 = 1080 Y2 = 1800 End Begin VB.Line Line13 X1 = 120 X2 = 8280 Y1 = 1560 Y2 = 1560 End Begin VB.Label Label27 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "F1 = 0" Height = 255 Left = 120 TabIndex = 40 Top = 2160 Width = 615 End Begin VB.Label Label26 BackStyle = 0 'Transparent Caption = "A3" Height = 255 Left = 1200 TabIndex = 39 Top = 1980 Width = 255 End Begin VB.Line Line12 BorderWidth = 2 X1 = 1800 X2 = 1920 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line11 BorderWidth = 2 X1 = 1800 X2 = 1920 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line10 BorderWidth = 2 X1 = 840 X2 = 1920 Y1 = 2280 Y2 = 2280 End Begin VB.Label Label23 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Pool Sizes" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 4200 TabIndex = 33 Top = 3480 Width = 1335 End Begin VB.Label Label13 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Radioactivity" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1320 TabIndex = 32 Top = 3480 Width = 1455 End Begin VB.Label Label12 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "nmol. gfw(-1)" Height = 615 Index = 0 Left = 3165 TabIndex = 30 Top = 4680 Width = 615 WordWrap = -1 'True End Begin VB.Label Label10 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 3840 TabIndex = 29 Top = 5760 Width = 135 End Begin VB.Label Label9 BackStyle = 0 'Transparent Caption = "Time (min)" Height = 255 Left = 4560 TabIndex = 28 Top = 6000 Width = 855 End Begin VB.Label Label8 BackStyle = 0 'Transparent Caption = "500" Height = 255 Left = 5790 TabIndex = 27 Top = 5880 Width = 375 End Begin VB.Label Label1 BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 3960 TabIndex = 26 Top = 5880 Width = 135 End Begin VB.Line Line9 BorderWidth = 2 X1 = 7200 X2 = 7320 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line7 BorderWidth = 2 X1 = 7200 X2 = 7320 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line8 BorderWidth = 2 X1 = 6480 X2 = 7320 Y1 = 2280 Y2 = 2280 End Begin VB.Line Line6 BorderWidth = 2 X1 = 5400 X2 = 5520 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line5 BorderWidth = 2 X1 = 5400 X2 = 5520 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line4 BorderWidth = 2 X1 = 4680 X2 = 5520 Y1 = 2280 Y2 = 2280 End Begin VB.Line Line3 BorderWidth = 2 X1 = 3600 X2 = 3720 Y1 = 2400 Y2 = 2280 End Begin VB.Line Line2 BorderWidth = 2 X1 = 3600 X2 = 3720 Y1 = 2160 Y2 = 2280 End Begin VB.Line Line1 BorderWidth = 2 X1 = 3720 X2 = 2880 Y1 = 2280 Y2 = 2280 End Begin VB.Label Label7 Alignment = 2 'Center BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "nCi. gfw(-1)" Height = 495 Left = 240 TabIndex = 4 Top = 4680 Width = 735 End Begin VB.Label Label6 Alignment = 2 'Center BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "Time (min)" Height = 255 Left = 1560 TabIndex = 3 Top = 6000 Width = 975 End Begin VB.Label Label3 Alignment = 1 'Right Justify BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 870 TabIndex = 2 Top = 5760 Width = 135 End Begin VB.Label Label2 BackColor = &H80000009& BackStyle = 0 'Transparent Caption = "0" Height = 255 Left = 1080 TabIndex = 1 Top = 5880 Width = 135 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Picture1.Refresh Picture2.Refresh Picture3.Refresh Mx = Text18.Text Label8.Caption = Text18.Text My1 = Text16.Text My2 = Text17.Text My3 = Text19.Text Mx3 = Text20.Text Km1 = Text15.Text Km2 = Text8.Text Km3 = Text9.Text Km4 = Text10.Text Vm1 = Text24.Text Vm2 = Text21.Text Vm3 = Text22.Text Vm4 = Text23.Text E1 = Text13.Text E2 = Text14.Text A1 = Text1.Text A2 = Text11.Text A3 = Text12.Text B1 = Text2.Text B2 = Text3.Text C1 = Text4.Text C2 = Text5.Text D1 = Text6.Text D2 = Text7.Text F1 = 0 z = Mx / 2000 For t = 0 To Mx Step z A4 = (Vm1 * E2) / (Km1 + E2) B3 = (Vm2 * A2) / (Km2 + A2) C3 = (Vm3 * B2) / (Km3 + B2) D3 = (Vm4 * C2) / (Km4 + C2) E2 = E2 - z * A4 A1 = (A1 * A2 + E1 * z * A4) / (A2 + z * A4) A2 = A2 + z * A4 A1 = (A1 * A2 + F1 * z * A3) / (A2 + z * A3) A2 = A2 + z * A3 A1 = (A1 * A2 - A1 * z * B3) / (A2 - z * B3) A2 = A2 - z * B3 B1 = (B1 * B2 + A1 * z * B3) / (B2 + z * B3) B2 = B2 + z * B3 B1 = (B1 * B2 - B1 * z * C3) / (B2 - z * C3) B2 = B2 - z * C3 C1 = (C1 * C2 + B1 * z * C3) / (C2 + z * C3) C2 = C2 + z * C3 C1 = (C1 * C2 - C1 * z * D3) / (C2 - z * D3) C2 = C2 - z * D3 D1 = (D1 * D2 + C1 * z * D3) / (D2 + z * D3) D2 = D2 + z * D3 X = t Y = E1 * E2 X = (X * 2000 / Mx) Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(0) Y = A1 * A2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(9) Y = B1 * B2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), RGB(0, 200, 0) Y = C1 * C2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(12) Y = D1 * D2 Y = 2000 - (Y * 2000 / My1) Picture1.PSet (X, Y), QBColor(13) Y = E2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(0) Y = A2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(9) Y = B2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), RGB(0, 200, 0) Y = C2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(12) Y = D2 Y = 2000 - (Y * 2000 / My2) Picture2.PSet (X, Y), QBColor(13) S = E2 V = A4 S = (S * 2000 / Mx3) V = 2000 - (V * 2000 / My3) If t > 0 Then Picture3.PSet (S, V), QBColor(9) S = A2 V = B3 S = (S * 2000 / Mx3) V = 2000 - (V * 2000 / My3) If t > 0 Then Picture3.PSet (S, V), RGB(0, 200, 0) S = B2 V = C3 S = (S * 2000 / Mx3) V = 2000 - (V * 2000 / My3) If t > 0 Then Picture3.PSet (S, V), QBColor(12) S = C2 V = D3 S = (S * 2000 / Mx3) V = 2000 - (V * 2000 / My3) If t > 0 Then Picture3.PSet (S, V), QBColor(13) Next t Y = 240 For X = 50 To 350 Step 1 Picture4.PSet (X, Y), QBColor(0) Next X Y = 460 For X = 50 To 350 Step 1 Picture4.PSet (X, Y), QBColor(9) Next X Y = 700 For X = 50 To 350 Step 1 Picture4.PSet (X, Y), RGB(0, 200, 0) Next X Y = 950 For X = 50 To 350 Step 1 Picture4.PSet (X, Y), QBColor(12) Next X Y = 1180 For X = 50 To 350 Step 1 Picture4.PSet (X, Y), QBColor(13) Next X End Sub Private Sub Command2_Click() Unload Form1 End Sub