Results 1 to 5 of 5

Thread: Help please very very urgent

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Lets say you are using a form that has a progress bar on it. you have 5 other forms and they all use that progress bar to show how mush is being loaded but you make it so the other forms are enabled = false when the progress form is there. so is there a way to make a variable in a module and when one of those forms loadeds up it says the variable is that forms name and then the progress bar uses that name to make the enabled true again when it unloads. For instance
    in module
    global happy as ????

    under the other forms when they load
    happy = me
    or happy = form1
    ????

    under the progress bar form
    If Pb1.Value < Pb1.Max Then
    If num <> -1 Then
    Pb1.Value = index1
    Else
    Pb1.Value = 1
    End If
    Else
    Unload Me
    happy.Enabled = True
    happy.Show
    End If

    I hope this made sense thanks!!!

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]


  2. #2

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Please someone help this is very urgent!!

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]


  3. #3
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    Here is a way I can do it I don't know if this is in all the versons.

    public happy as form

    sub done()
    happy = me
    end sub

    happy.enabled = true
    happy.show

    Hope this helps!

    ------------------
    www.kaynor.net

  4. #4

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    It doesn't work it says invalid use of property. Any suggestions?

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]


  5. #5
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    Set happy = Me
    should work, as long as happy is a public variable of type Form

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