| | |
How to make a Loading bar??
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
add a timer and a progress bar to your form.
set the progressbar1.max(or maximum i think) to 100,value to 0.
set the timer1.enabled=false
type this inside the timer event:
If ProgressBar1.Value <> ProgressBar1.Max Then
ProgressBar1.Value = (ProgressBar1.Value + 1)
else
frmlogin.hide(or Unload frmlogin)
frmMain.Show
me.enabled=0
End If
then type this after the user successfully logged:
timer1.enabled=1
*change the progressbar1.interval if how fast or slow you progress bar should be.
set the progressbar1.max(or maximum i think) to 100,value to 0.
set the timer1.enabled=false
type this inside the timer event:
If ProgressBar1.Value <> ProgressBar1.Max Then
ProgressBar1.Value = (ProgressBar1.Value + 1)
else
frmlogin.hide(or Unload frmlogin)
frmMain.Show
me.enabled=0
End If
then type this after the user successfully logged:
timer1.enabled=1
*change the progressbar1.interval if how fast or slow you progress bar should be.
•
•
Join Date: Dec 2007
Posts: 11
Reputation:
Solved Threads: 0
I have this in my code
Seem to make the progress after the files load, and that really ain't the progress. Anyway to adjust it to be more accurate, should I move the file loading events to the timer to be executed during the progress bar?
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub mnuOpen_Click() Dim result As FMOD_RESULT Dim cD As New cCommonDialog If channel Then Call FMOD_Channel_Stop(channel) End If Timer1.Enabled = 1 On Error GoTo ErrorHandler If (cD.VBGetOpenFileName(sFile, Filter:="Wave Files (*.WAV)|*.WAV|All Files (*.*)|*.*", _ DefaultExt:="WAV", Owner:=Me.Hwnd)) Then Timer1.Enabled = 1 result = FMOD_System_CreateSound(system, sFile, FMOD_SOFTWARE, Sound) ERRCHECK (result) result = FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, Sound, 0, channel) ERRCHECK (result) result = FMOD_Channel_SetPaused(channel, 1) vbalWaveRender1.WaveFile = sFile End If Exit Sub ErrorHandler: MsgBox "Error: " & Err.description, vbExclamation Exit Sub End Sub
If at first you don't succeed, don't try skydiving!
![]() |
Similar Threads
- Windows Explorer Issue: my "Address" bar is gone, how do I get it back? (Windows NT / 2000 / XP)
- About Progress Bar (Visual Basic 4 / 5 / 6)
- progress bar (Visual Basic 4 / 5 / 6)
- css to make navigation bar (HTML and CSS)
- how to make animation bar in javascript (JavaScript / DHTML / AJAX)
- windows explorer -explorer bar sticky on desktop (Windows Software)
- Loading Bar Problem (Web Browsers)
- ie problems (Web Browsers)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Large Icon ListView like with Text area
- Next Thread: VU Meter to control a clavilux
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





