A
Alexia
Hi,
I just wanted a hand on using modules. I have just
managed to create a custom smooth progress bar control
and i wanted to know if it is possible to insert the code
in a module so it can be called from any of my forms.
what i am confused on is the syntax i have to use in the
module. here is my code i will need to reuse for each
onclick event throughout my appliaction:
Me.SmoothProgressBar1.Value = 100
Me.SmoothProgressBar2.Value = 0
Me.Timer1.Interval = 1
Me.Timer1.Enabled = True
i also have to add code for the tick event for each timer
i place on the forms that use the PBar. here is the code
for that:
If (Me.SmoothProgressBar1.Value > 0) Then
Me.SmoothProgressBar1.Value -= 1
Me.SmoothProgressBar2.Value += 1
Else
Me.Timer1.Enabled = False
End If
Can anyone help me with what i need to write in my
module? and what code i need to call this for eac onclick
event.
Im new to all this and would appreciate any help
I just wanted a hand on using modules. I have just
managed to create a custom smooth progress bar control
and i wanted to know if it is possible to insert the code
in a module so it can be called from any of my forms.
what i am confused on is the syntax i have to use in the
module. here is my code i will need to reuse for each
onclick event throughout my appliaction:
Me.SmoothProgressBar1.Value = 100
Me.SmoothProgressBar2.Value = 0
Me.Timer1.Interval = 1
Me.Timer1.Enabled = True
i also have to add code for the tick event for each timer
i place on the forms that use the PBar. here is the code
for that:
If (Me.SmoothProgressBar1.Value > 0) Then
Me.SmoothProgressBar1.Value -= 1
Me.SmoothProgressBar2.Value += 1
Else
Me.Timer1.Enabled = False
End If
Can anyone help me with what i need to write in my
module? and what code i need to call this for eac onclick
event.
Im new to all this and would appreciate any help