Calling procedure in another form - How do you do it?

emaduddeen

Well-known member
Joined
May 5, 2010
Messages
171
Location
Lowell, MA & Occasionally Indonesia
Programming Experience
Beginner
Hi Everyone,

There are 2 forms open for the user in a school attendance program. The 1st. form is called FormBrowseClasses and the other form is called FormBrowseGrades. On the 2nd form is a procedure called PopulateTheDataGridWithData. That procedure loads data into a DataGrid.

We would like to call PopulateTheDataGridWithData from within FormBrowseGrades so the data in the DataGrid will be refreshed.

We already tried:
VB.NET:
                ' Refresh DataGrid data on FormBrowseClasses
                '-------------------------------------------
                objFormBrowseClasses.PopulateTheDataGridWithData()

but this only runs on a new instance of the form, not the currently open form.

Can you tell us how to set this up correctly?

Thanks.

Truly,
Emad
 
Back
Top