FuNnY.8K.Ro
By DeMoN Hack World
 FAQ   Cautare   Membri   Grupuri   Inregistrare   Profil   Mesaje private   Autentificare 

Coduri sursa pt unele programele..

 
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului FuNnY.8K.Ro -> :-: Visual Basic :-:
Subiectul anterior :: Subiectul urmator  
Autor Mesaj
eujupanu
Membru junior
Membru junior


Data inscrierii: 14/Sep/2007
Mesaje: 79

MesajTrimis: 15/09/2007 20:28    Titlul subiectului: Coduri sursa pt unele programele.. Raspunde cu citat (quote)

:hump: :cap:
a ***VERY DIFFERENT*** Screen Saver


Level: Beginner
Compatibility:VB 5.0, VB 6.0

this is a totally differn't type of screensaver than what i've found here, this is actually pretty funny to just sit back and watch =-)


code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!


Terms of Agreement:
By using this code, you agree to the following terms...
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled compus for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

'**************************************
' Name: a ***VERY DIFFERENT*** Screen Sa
' ver
' BY www.funny.8k.ro



Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Unload Me
End Sub


Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
End Sub


Private Sub Form_Load()


Form1.BackColor = vbBlack


Form1.BorderStyle = 0
Timer1.Interval = 175
End Sub


Private Sub Timer1_Timer()
ht = RandomNum(Min, Max)
wh = RandomNum(Min, Max)


Form1.Move wh, ht


Form1.Height = ht


Form1.Width = wh


Form1.Height = wh


Form1.Width = ht
End Sub


Public Function RandomNum(Min, Max) As Long
RandomNum = Int((Max - Min + 9500) * Rnd + Min)
End Function
SUCCES
Sus
Vezi profilul utilizatorului Trimite mesaj privat
DeMoN
BosS
BosS
DeMoN

Data inscrierii: 14/Sep/2007
Mesaje: 144

MesajTrimis: 15/09/2007 20:37    Titlul subiectului: Raspunde cu citat (quote)

Level: Intermediate
Compatibility:VB 6.0

code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!


Terms of Agreement:
By using this code, you agree to the following terms...
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled compus for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the autentic author. Failure to do so is a violation of copyright laws.
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


'
' By: www.funny.8k.ro
'

Option Explicit
Private DX7 As DirectX7
Private DXD As DirectDraw7
Private DXDS As DirectDrawSurface7
Private DXSD As DDSURFACEDESC2


Private Sub Form_Load()
Dim i As Long, j As Long


Form1.Show
Set DX7 = New DirectX7
Set DXD = DX7.DirectDrawCreate("")


With DXSD
.lFlags = DDSD_CAPS
.ddsCaps.lCaps = DDSCAPS_PRIMARYSURFACE
End With
DXD.SetCooperativeLevel Form1.hWnd, DDSCL_EXCLUSIVE Or DDSCL_FULLSCREEN
DXD.SetDisplayMode 640, 480, 16, 0, DDSDM_DEFAULT
Set DXDS = DXD.CreateSurface(DXSD)
i = 0


Do Until DoEvents()


For j = 0 To ScaleWidth Step 50
DXDS.SetForeColor i
DXDS.DrawLine Rnd * Screen.Width, Rnd * Screen.Height, j, 0
i = i + 1


If i = 65536 Then
i = 0
End If
Next j
Loop
End Sub


Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call endp
End Sub


Private Sub endp()
DXD.RestoreDisplayMode
Set DX7 = Nothing
Set DXD = Nothing
Set DXDS = Nothing
End
End Sub


spor sa ai ... bastanule...
_________________
Un NImeni celebru!!
Sus
Vezi profilul utilizatorului Trimite mesaj privat Trimite un mesaj
seby
Junior
Junior


Data inscrierii: 28/Sep/2008
Mesaje: 9

MesajTrimis: 28/09/2008 20:23    Titlul subiectului: Raspunde cu citat (quote)

o sa fac si yo un tutorial dar o sa il pun in chineza :|
Sus
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:   
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului FuNnY.8K.Ro -> :-: Visual Basic :-: Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro