home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
5_2007-2008.ISO
/
data
/
Zips
/
Intensive_2121177202008.psc
/
Form
/
AminoCaveats.frm
< prev
next >
Wrap
Text File
|
2008-06-30
|
17KB
|
537 lines
VERSION 5.00
Begin VB.Form AminoCaveats
BackColor = &H00FF0000&
BorderStyle = 0 'None
ClientHeight = 5085
ClientLeft = 0
ClientTop = 0
ClientWidth = 6465
LinkTopic = "Form1"
ScaleHeight = 5085
ScaleWidth = 6465
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.TextBox MD3txt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 23
Top = 1320
Width = 1335
End
Begin VB.TextBox DI3txt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 22
Top = 1680
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "Calculate"
Height = 375
Left = 3480
TabIndex = 21
Top = 4440
Width = 2055
End
Begin VB.TextBox TRtxt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 12
Top = 3840
Width = 1335
End
Begin VB.TextBox Pktxt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 11
Top = 3480
Width = 1335
End
Begin VB.TextBox DesATrough
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 10
Top = 3120
Width = 1335
End
Begin VB.TextBox DesAPeak
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 9
Top = 2760
Width = 1335
End
Begin VB.TextBox ActTroughtxt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 8
Top = 2400
Width = 1335
End
Begin VB.TextBox ActPeaktxt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 7
Top = 2040
Width = 1335
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00FF0000&
BorderStyle = 0 'None
DragMode = 1 'Automatic
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 285
Left = 4440
TabIndex = 6
Top = 1320
Width = 1335
End
Begin VB.TextBox AminoRxtxt
Alignment = 2 'Center
BackColor = &H00000000&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 495
Left = 1560
TabIndex = 5
Top = 600
Width = 3735
End
Begin VB.CommandButton FlatButton5
Caption = "OK"
Height = 375
Left = 1080
TabIndex = 4
Top = 4440
Width = 1575
End
Begin GoffsICU.ocxFormShape ocxFormShape1
Left = 360
Top = 4560
_ExtentX = 794
_ExtentY = 873
Shape = 4
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Trough Time (hr) ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 9
Left = 840
TabIndex = 20
Top = 3840
Width = 3375
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Peak Time (hr) ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 6
Left = 840
TabIndex = 19
Top = 3480
Width = 3375
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Desired Peak Level ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 5
Left = 840
TabIndex = 18
Top = 2760
Width = 3255
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Actual Peak Level ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 4
Left = 840
TabIndex = 17
Top = 2040
Width = 3375
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Desired Trough Level ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 2
Left = 840
TabIndex = 16
Top = 3120
Width = 3495
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Actual Trough Level ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 3
Left = 840
TabIndex = 15
Top = 2400
Width = 3495
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Dosing Interval (hrs) ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 1
Left = 840
TabIndex = 14
Top = 1680
Width = 3255
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Maintenance Dosage ="
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 375
Index = 0
Left = 840
TabIndex = 13
Top = 1320
Width = 3015
End
Begin VB.Label Label11
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Estimated Initial Dosage"
BeginProperty Font
Name = "Verdana"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
Index = 0
Left = 840
TabIndex = 3
Top = 120
Width = 4455
End
Begin VB.Label Label11
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Estimated Initial Dosage"
BeginProperty Font
Name = "Verdana"
Size = 14.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Index = 1
Left = 810
TabIndex = 2
Top = 90
Width = 4455
End
Begin VB.Label Label107
BackStyle = 0 'Transparent
Caption = "Q"
BeginProperty Font
Name = "Wingdings 2"
Size = 15.75
Charset = 2
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 375
Index = 0
Left = 6000
TabIndex = 0
Top = 180
Width = 345
End
Begin VB.Label Label107
BackStyle = 0 'Transparent
Caption = "Q"
BeginProperty Font
Name = "Wingdings 2"
Size = 15.75
Charset = 2
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 360
Index = 1
Left = 5970
TabIndex = 1
Top = 180
Visible = 0 'False
Width = 345
End
End
Attribute VB_Name = "AminoCaveats"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CandyButton1_Click()
End Sub
Private Sub Command1_Click()
Pk = Val(ActPeaktxt.Text)
TR = Val(ActTroughtxt.Text)
MDAminog = Val(MD3txt.Text)
DIAminog = Val(DI3txt.Text)
TA = Val(Pktxt.Text)
TB = Val(TRtxt.Text)
X = Val(DesAPeak.Text)
Y = Val(DesATrough.Text)
Load Adjust1
Adjust1.Show
End Sub
Private Sub Form_Load()
Me.Left = Hemodynamics.Left + 100
Me.Top = Hemodynamics.Top + 900
SetTopMostWindow Me.hwnd, True
Pk = 0
TR = 0
TB = 0
TH = 0
DesAPeak.Text = Str(X)
DesATrough.Text = Str(Y)
AminoRxtxt.Text = AminoRx
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
ReleaseCapture
SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
End If
End Sub
Private Sub Label107_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Label107(0).Visible = False
Label107(1).Visible = True
End Sub
Private Sub Label107_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Label107(1).Visible = False
Label107(0).Visible = True
Unload Me
End Sub