code_junkie

How can I make a globally accessible datatable in a Winforms application?

Nov 11th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Public
  2.  
  3. Class Form3
  4.  
  5. Private myTable as New DataTable
  6.  
  7. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  8.  
  9. MsgBox(t.Rows.Count)
  10.  
  11. End Sub
  12.  
  13. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  14.  
  15. MsgBox(t.Rows.Count)
  16.  
  17. End Sub
  18.  
  19.  
  20. End Class
Add Comment
Please, Sign In to add comment