Advertisement
tomjerry741

LOGIN SCREEN WITH EFFECTS FOR vB 2010

Mar 20th, 2012
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.27 KB | None | 0 0
  1. add two forms to your progect
  2. in first form1
  3. go to properites list and
  4. set autosizemode as GrowAndShrink
  5. set startposition as centrescreen
  6. set controlbox as false
  7. back colore as Red
  8.  
  9. add picturebox "Gif Pictures" as Centre screen
  10. go to properites and set visible as false
  11.  
  12. add timer1
  13. set interval as 100
  14.  
  15. add lable1 "text as " Empty       "
  16. go to properites ANDSET
  17. visible as false
  18.  
  19. DOUBLE CLICK ON FORM1
  20. THEN COPY AND PASTE THIS CODE
  21.  
  22. --------------------------------------
  23.  
  24. Public Class Form1
  25.    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  26.        ProgressBar1.Increment(1)
  27.        PictureBox1.Show()
  28.        ProgressBar1.Increment(1)
  29.        If ProgressBar1.Value = ProgressBar1.Maximum Then
  30.            Timer1.Stop()
  31.            Form2.Show()
  32.            Me.Hide()
  33.        End If
  34.  
  35.  
  36.        If ProgressBar1.Value = 90 Then
  37.            Label1.Visible = True
  38.            Label1.Text = "Damn you"
  39.  
  40.        End If
  41.    End Sub
  42.  
  43.    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  44.        Timer1.Start()
  45.        
  46.    End Sub
  47. End Class
  48. --------------------------------
  49.  
  50.  
  51. THANX
  52. TOMJERRY741@YAHOO.COM
  53. FROM eGYPT- lUXOR cITY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement