این دیگه در تخصص حمید آقاست ![Sm3](http://www.i-phone.ir/forums/images/smilies/sm3.gif)
اگه میخوای آخرین فایلی که ساختی رو بفرست شاید تونستم بهش اضافه کنم
![Sm3](http://www.i-phone.ir/forums/images/smilies/sm3.gif)
اگه میخوای آخرین فایلی که ساختی رو بفرست شاید تونستم بهش اضافه کنم
Private Sub Frame1_DragDrop(Source As Control, x As Single, y As Single) End Sub Private Sub Command1_Click() Label1(32) = (Val(Text1(10)) + Val(Text1(1)) + Val(Text1(2)) + Val(Text1(3)) + Val(Text1(4)) + Val(Text1(5)) + Val(Text1(6)) + Val(Text1(7)) + Val(Text1(8)) + Val(Text1(9))) / 10 Label1(30) = (Val(Text1(20)) + Val(Text1(11)) + Val(Text1(12)) + Val(Text1(13)) + Val(Text1(14)) + Val(Text1(15)) + Val(Text1(16)) + Val(Text1(17)) + Val(Text1(18)) + Val(Text1(19))) / 10 x = (Val(Text1(0)) + Val(Text1(40)) + Val(Text1(39)) + Val(Text1(38)) + Val(Text1(37)) + Val(Text1(36)) + Val(Text1(35)) + Val(Text1(34)) + Val(Text1(33)) + Val(Text1(32))) / 10 y = (Val(Text1(30)) + Val(Text1(21)) + Val(Text1(22)) + Val(Text1(23)) + Val(Text1(24)) + Val(Text1(25)) + Val(Text1(26)) + Val(Text1(27)) + Val(Text1(28)) + Val(Text1(29))) / 10 z = (Val(Text1(10)) + Val(Text1(1)) + Val(Text1(2)) + Val(Text1(3)) + Val(Text1(4)) + Val(Text1(5)) + Val(Text1(6)) + Val(Text1(7)) + Val(Text1(8)) + Val(Text1(9))) / 10 q = (Val(Text1(20)) + Val(Text1(11)) + Val(Text1(12)) + Val(Text1(13)) + Val(Text1(14)) + Val(Text1(15)) + Val(Text1(16)) + Val(Text1(17)) + Val(Text1(18)) + Val(Text1(19))) / 10 Label1(31) = x Text1(31) = (Val(Text1(10)) + 2 * (Val(Text1(0))) + Val(Text1(20)) + 6 * Val(Text1(30))) / 10 Text1(49) = (Val(Text1(1)) + 2 * (Val(Text1(40))) + Val(Text1(11)) + 6 * Val(Text1(21))) / 10 Text1(48) = (Val(Text1(2)) + 2 * (Val(Text1(39))) + Val(Text1(12)) + 6 * Val(Text1(22))) / 10 Text1(47) = (Val(Text1(3)) + 2 * (Val(Text1(38))) + Val(Text1(13)) + 6 * Val(Text1(23))) / 10 Text1(46) = (Val(Text1(4)) + 2 * (Val(Text1(37))) + Val(Text1(14)) + 6 * Val(Text1(24))) / 10 Text1(45) = (Val(Text1(5)) + 2 * (Val(Text1(36))) + Val(Text1(15)) + 6 * Val(Text1(25))) / 10 Text1(44) = (Val(Text1(6)) + 2 * (Val(Text1(35))) + Val(Text1(16)) + 6 * Val(Text1(26))) / 10 Text1(43) = (Val(Text1(7)) + 2 * (Val(Text1(34))) + Val(Text1(17)) + 6 * Val(Text1(27))) / 10 Text1(42) = (Val(Text1(8)) + 2 * (Val(Text1(33))) + Val(Text1(18)) + 6 * Val(Text1(28))) / 10 Text1(41) = (Val(Text1(9)) + 2 * (Val(Text1(32))) + Val(Text1(19)) + 6 * Val(Text1(29))) / 10 Label1(28) = (z + 2 * x + q + 6 * y) / 10 Label1(29) = y If CDbl(Text1(31).Text) < 10 Then Label2(1).Caption = "Banned" Else Label2(1).Caption = "Accept" End If If CDbl(Text1(49).Text) < 10 Then Label1(42).Caption = "Banned" Else Label1(42).Caption = "Accept" End If If CDbl(Text1(48).Text) < 10 Then Label1(40).Caption = "Banned" Else Label1(40).Caption = "Accept" End If If CDbl(Text1(47).Text) < 10 Then Label1(37).Caption = "Banned" Else Label1(37).Caption = "Accept" End If If CDbl(Text1(46).Text) < 10 Then Label1(41).Caption = "Banned" Else Label1(41).Caption = "Accept" End If If CDbl(Text1(45).Text) < 10 Then Label1(34).Caption = "Banned" Else Label1(34).Caption = "Accept" End If If CDbl(Text1(44).Text) < 10 Then Label1(36).Caption = "Banned" Else Label1(36).Caption = "Accept" End If If CDbl(Text1(43).Text) < 10 Then Label1(35).Caption = "Banned" Else Label1(35).Caption = "Accept" End If If CDbl(Text1(42).Text) < 10 Then Label1(38).Caption = "Banned" Else Label1(38).Caption = "Accept" End If If CDbl(Text1(41).Text) < 10 Then Label1(39).Caption = "Banned" Else Label1(39).Caption = "Accept" End If If CDbl(Label1(28).Caption) < 10 Then Label1(43).Caption = "Banned" Else Label1(43).Caption = "Accept" End If End Sub Private Sub Command2_Click() ms = MsgBox("Are you Sure?", vbYesNo, "Exit") If ms = vbYes Then End End If End Sub Private Sub Command3_Click() r = MsgBox("Hi My name is Mohammad Razmara. I create this program and spend about 4 hours for make it .I hope you'll like.", vbInformation, "About us") End Sub Private Sub Command4_Click() For i = 1 To 49 Text1(i).Text = "" Next i End Sub
If a < 10 then msgbox "Accepted" else msgbox "Failed" End If
If CDbl(Text1(31).Text) < 10 Then Label2(1).Caption = "Banned" Else Label2(1).Caption = "Accept" End If
If CDbl(Text1(31).Text) < 10 Then Label2(1).Caption = "Failed" Label2(1).ForeColor = vbRed Else Label2(1).Caption = "Accept" Label2(1).ForeColor = vbGreen End If
نظر