I am trying to refresh a datagrid on one form from another. I found a code sample on this forum where I could click a button from a second form like this (Public Shared):

Form1
VB Code:
  1. ' This is form1
  2.     Public Shared Sub Button1_Click _
  3.         (ByVal sender As System.Object, _
  4.         ByVal e As System.EventArgs) Handles Button1.Click
  5.  
  6.         MsgBox("Hello World")
  7.  
  8.     End Sub
  9.  
  10.     Private Sub Button2_Click _
  11.         (ByVal sender As System.Object, _
  12.         ByVal e As System.EventArgs) Handles Button2.Click
  13.  
  14.         Dim xForm As New Form2
  15.         xForm.Show()
  16.  
  17.     End Sub
Form2
VB Code:
  1. Private Sub Button1_Click _
  2.         (ByVal sender As System.Object, _
  3.         ByVal e As System.EventArgs) Handles Button1.Click
  4.  
  5.         Dim zForm As New Form1
  6.         zForm.Button1_Click(Me, Nothing)
  7.  
  8.     End Sub
Pushing the button on the second form causes the button on the first form to show the Hello World message.

Now when I try to do the same thing with a button that refresshes a datagrid I get this error: Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.

How do I overcome that?