Giriş yap
Arama
En iyi yollayıcılar
K.R.M (244) | ||||
DeathlyLord (225) | ||||
KinGofLife (221) | ||||
O.G.L.C.N (184) | ||||
ExSeLanCeTR (20) | ||||
BornTh3aLive. (20) | ||||
GameMasterxD (13) | ||||
oldschoolko (12) | ||||
By-MuRat (8) | ||||
GFb~fatih (7) |
En son konular
Kimler hatta?
Toplam 3 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 3 Misafir Yok
Sitede bugüne kadar en çok 174 kişi Salı Ağus. 01, 2017 6:01 pm tarihinde online oldu.
Facebook
Visual Basıc'te Uçan Yazı
1 sayfadaki 1 sayfası
Visual Basıc'te Uçan Yazı
Visual Basıc'te uçan yazı yapmak isteyenler aşağıdaki kodu forma yapıştırsın yeter
rivate Sub Command1_Click()
Randomize Timer 'Init Rnd
'Declarations
Dim StartTime(100) 'Starttime of a up/down movement
Dim DownMovement(100) As Boolean 'are we doing a up or down movement ???
Dim MoveDistance As Double 'distance target has moved since the start of the movement
Dim YPos(100) As Double 'Holds the y position of a letter
Dim MovementDone(100) As Boolean 'Is set to true when a up / down movement is completed
Dim StartHeight(100) As Double 'From which hight will the letter fall down ?
Dim UpMovementTime(100) As Double 'How long will it the letter take to move up
Dim PowerLoss(100) As Double 'losing xx% of power when touching the ground
Dim Message As String 'Message you want to display
Dim Looop As Integer 'Loop var
Dim TextColor(100) As ColorConstants 'Color of one letter
'Settings
Picture1.ScaleMode = 4
Picture1.FontName = "Arial"
Message = "*** deneme *** CONTACT ME: [Linkleri görebilmek için üye olun veya giriş yapın.] (Zeki görür) " 'Mesajı okuyalım.
For Looop = 1 To Len(Message)
PowerLoss(Looop) = 0.2 + ((Rnd * 25) / 100) '
StartHeight(Looop) = 0
TextColor(Looop) = RGB(80 + Looop * 2, 80 + Looop * 2, 255)
Next Looop
For Looop = 1 To Len(Message)
StartTime(Looop) = Timer
Next Looop
Do
Picture1.Cls
For Looop = 1 To Len(Message)
If DownMovement(Looop) = True Then
MoveDistance = (StartHeight(Looop) + (0.5 * 9.81 * ((Timer - StartTime(Looop)) ^ 2))) 'Calculating falling distance
If YPos(Looop) >= Picture1.ScaleHeight - 1 Then MovementDone(Looop) = True 'The letter reached the bottom border. The Downmovement is complete
Else
MoveDistance = (StartHeight(Looop) + (0.5 * 9.81 * (UpMovementTime(Looop) - (Timer - StartTime(Looop))) ^ 2)) 'Calculating falling distance
If YPos(Looop) <= StartHeight(Looop) + 0.1 Then MovementDone(Looop) = True 'The letter reached the max. height. The upmovement is complete
End If
YPos(Looop) = MoveDistance
If YPos(Looop) > Picture1.ScaleHeight - 1 Then 'If the letter fell out of our picturebox we fix it
YPos(Looop) = Picture1.ScaleHeight - 1 'At the bottom position
End If
Picture1.CurrentX = Picture1.ScaleWidth / 2 - Int((Len(Message) / 2)) + Looop
Picture1.CurrentY = YPos(Looop) 'Setting the letters y position
Picture1.ForeColor = TextColor(Looop) 'Setting the letters color
Picture1.Print Mid(Message, Looop, 1) 'Text output
Next Looop
DoEvents
For Looop = 1 To Len(Message)
If MovementDone(Looop) = True Then
If DownMovement(Looop) = True Then 'Switch between up/downmovement
DownMovement(Looop) = False
StartHeight(Looop) = StartHeight(Looop) + ((Picture1.ScaleHeight - StartHeight(Looop)) * PowerLoss(Looop)) 'New Startheight, because of speed lost ?!?!
UpMovementTime(Looop) = Sqr((Picture1.ScaleHeight - StartHeight(Looop)) / (0.5 * 9.81)) 'How long will the NEXT upmovement last ???
Else
DownMovement(Looop) = True
End If
StartTime(Looop) = Timer 'Set the StartTime of a new movement
MovementDone(Looop) = False
End If
Next Looop
Loop 'Until StartHeight = OUT.ScaleHeight
End Sub
Private Sub Form_Activate()
On Error Resume Next
Picture1.BackColor = "H8000000F"
End Sub
Private Sub Form_Load()
Form1.WindowState = 2
End Sub
Private Sub Form_Terminate()
End
End Sub
Private Sub Form_Unload(Cancel As Integer)
Unload Me
End Sub
rivate Sub Command1_Click()
Randomize Timer 'Init Rnd
'Declarations
Dim StartTime(100) 'Starttime of a up/down movement
Dim DownMovement(100) As Boolean 'are we doing a up or down movement ???
Dim MoveDistance As Double 'distance target has moved since the start of the movement
Dim YPos(100) As Double 'Holds the y position of a letter
Dim MovementDone(100) As Boolean 'Is set to true when a up / down movement is completed
Dim StartHeight(100) As Double 'From which hight will the letter fall down ?
Dim UpMovementTime(100) As Double 'How long will it the letter take to move up
Dim PowerLoss(100) As Double 'losing xx% of power when touching the ground
Dim Message As String 'Message you want to display
Dim Looop As Integer 'Loop var
Dim TextColor(100) As ColorConstants 'Color of one letter
'Settings
Picture1.ScaleMode = 4
Picture1.FontName = "Arial"
Message = "*** deneme *** CONTACT ME: [Linkleri görebilmek için üye olun veya giriş yapın.] (Zeki görür) " 'Mesajı okuyalım.
For Looop = 1 To Len(Message)
PowerLoss(Looop) = 0.2 + ((Rnd * 25) / 100) '
StartHeight(Looop) = 0
TextColor(Looop) = RGB(80 + Looop * 2, 80 + Looop * 2, 255)
Next Looop
For Looop = 1 To Len(Message)
StartTime(Looop) = Timer
Next Looop
Do
Picture1.Cls
For Looop = 1 To Len(Message)
If DownMovement(Looop) = True Then
MoveDistance = (StartHeight(Looop) + (0.5 * 9.81 * ((Timer - StartTime(Looop)) ^ 2))) 'Calculating falling distance
If YPos(Looop) >= Picture1.ScaleHeight - 1 Then MovementDone(Looop) = True 'The letter reached the bottom border. The Downmovement is complete
Else
MoveDistance = (StartHeight(Looop) + (0.5 * 9.81 * (UpMovementTime(Looop) - (Timer - StartTime(Looop))) ^ 2)) 'Calculating falling distance
If YPos(Looop) <= StartHeight(Looop) + 0.1 Then MovementDone(Looop) = True 'The letter reached the max. height. The upmovement is complete
End If
YPos(Looop) = MoveDistance
If YPos(Looop) > Picture1.ScaleHeight - 1 Then 'If the letter fell out of our picturebox we fix it
YPos(Looop) = Picture1.ScaleHeight - 1 'At the bottom position
End If
Picture1.CurrentX = Picture1.ScaleWidth / 2 - Int((Len(Message) / 2)) + Looop
Picture1.CurrentY = YPos(Looop) 'Setting the letters y position
Picture1.ForeColor = TextColor(Looop) 'Setting the letters color
Picture1.Print Mid(Message, Looop, 1) 'Text output
Next Looop
DoEvents
For Looop = 1 To Len(Message)
If MovementDone(Looop) = True Then
If DownMovement(Looop) = True Then 'Switch between up/downmovement
DownMovement(Looop) = False
StartHeight(Looop) = StartHeight(Looop) + ((Picture1.ScaleHeight - StartHeight(Looop)) * PowerLoss(Looop)) 'New Startheight, because of speed lost ?!?!
UpMovementTime(Looop) = Sqr((Picture1.ScaleHeight - StartHeight(Looop)) / (0.5 * 9.81)) 'How long will the NEXT upmovement last ???
Else
DownMovement(Looop) = True
End If
StartTime(Looop) = Timer 'Set the StartTime of a new movement
MovementDone(Looop) = False
End If
Next Looop
Loop 'Until StartHeight = OUT.ScaleHeight
End Sub
Private Sub Form_Activate()
On Error Resume Next
Picture1.BackColor = "H8000000F"
End Sub
Private Sub Form_Load()
Form1.WindowState = 2
End Sub
Private Sub Form_Terminate()
End
End Sub
Private Sub Form_Unload(Cancel As Integer)
Unload Me
End Sub
Similar topics
» Microsoft Visual C++ Visual Redistributable Paketi
» Visual Basic'te MEDİA PLAYER YAPMAK
» Visual Basic - Başlarken
» Visual Basic 6.0 Profesyonel Eğitim Seti
» Visual Basic'te Tarih işlemleri
» Visual Basic'te MEDİA PLAYER YAPMAK
» Visual Basic - Başlarken
» Visual Basic 6.0 Profesyonel Eğitim Seti
» Visual Basic'te Tarih işlemleri
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Paz Mart 02, 2014 10:28 am tarafından cagataymorcicek
» C ile Basit Program Kodları!
Salı Ara. 10, 2013 11:20 pm tarafından tuncay117
» Crypter Nasıl Yazılıyor Merak edenler buyrun
C.tesi Haz. 01, 2013 11:14 pm tarafından gezegen33
» C Kodlama Standartları
Perş. Kas. 08, 2012 6:54 pm tarafından penguen260
» C++ Dilinin kullanımı ve açılımı
Perş. Kas. 08, 2012 6:45 pm tarafından penguen260
» VISUAL BASIC
Ptsi Ağus. 06, 2012 3:29 pm tarafından 55la
» K.R.M - Jadde Patch UnLimiteD ! Bütün Modlar Aktif ! [İNDİR]
Çarş. Tem. 18, 2012 9:55 pm tarafından _RozaLinda_
» K.R.M Client V3 [ Bot Aktif ] [ Yenilendi 16.02.2011 ]
Salı Haz. 05, 2012 10:52 pm tarafından xxscream
» K.R.M Jadde Patch UnLimiteD ( YENİ BOT [ BÜTÜN MOD LAR ] AKTİF )
Cuma Eyl. 09, 2011 2:02 am tarafından K.R.M