-
Hi, how can I set values for a progressbar on another form? I have a timer on one form that needs to show its progress from a common progressbar on another form. I know you can declare procedures as public to share them instead of the default private, but what about a control?
Thanks in advance,
Wade
-
I don't think you can, Even if you can't it kinda goes against the whole Idea of OO Programming, Just have a public property in your form something like
Code:
Public Property Let ProgressBarValue (Data as Integer)
ProgressBar1.Value = Data
End Property
Public Property Get ProgressBarValue as Long
ProgressBarValue = ProgressBar1.Value
End Property
Hope this helps
-
Hello Wade,
If you really want to, use something like this.
from the timer:
frmMain.ProgressBar1.Value = YourValue
Hope this helps,
Roger
-
If I use a procedure, it works great. Thanks for the help.
Wade