CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Accessing a Form from a Module?

    I have a function in a Module (a .BAS file) that needs to change a progress bar in one of my forms in an MDI project. This function, UpdateProgBar(), is used in another Function with AddressOf, which is why it needs to be in a module as opposed to code in the form I want to change. Is there any way from a module Function (or Sub) to access a form and then change it's value?

    I have tried the screen.ActiveForm method (also MDIform.ActiveForm), but it is possible that the form I need to change is not the active one! Ideally, I would like to enumerate though all of the forms in the project and find the one with the right caption, and then change that forms progress bar. Can this be done??

    Thank you very much for your help.

    Jeff




  2. #2
    Guest

    Re: Accessing a Form from a Module?

    formname.controlname.propertyname = value


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

Featured