Results 1 to 3 of 3

Thread: [RESOLVED] 'loading' text

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Resolved [RESOLVED] 'loading' text

    i want to have a text box on my form which says..

    Loading......

    (6 dots)

    but how can i make it realistic like making the dots move e.g..

    loading.
    loading..
    loading...
    loading....

    etc... this would happen very fast obviously, but i hope u guys know what i mean

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Re: 'loading' text

    never mind, sorted it

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [RESOLVED] 'loading' text

    You could use something like this:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    4.  
    5. Private Sub Form_Activate()
    6.   Dim st As String, x As Integer
    7.   st = "Loading"
    8.   Label1.Caption = st
    9.   For x = 1 To 6 ' use any number of dots
    10.     st = st & "."
    11.     Label1.Caption = st
    12.     DoEvents
    13.     Sleep 400
    14.   Next x
    15. End Sub
    16.  
    17. Private Sub Form_Load()
    18.   Me.Show
    19. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width