tags:

views:

85

answers:

0

I have two forms, frmStudents and frmAddEditStudents.

frmStudents has a datagridview that is loaded with list of students. frmAddEditStudents can be loaded from frmStudents through buttons.

When using this code,

Dim oForm as New frmStudents With oForm .ShowDialog End With

i cannot update the datagridview in this form from frmAddEditStudents form.

But this code will show updates,

With frmStudents .ShowDialog End With

What's the reason why using the new keyword I cannot do updates to the parent form.