Using DataTable from another form

226 Views Asked by At

I have a function that picks some data in a DataTable and it returns a value. My DataTable is filled by a TableAdapter. So far all is working fine.
Problem appears after I have set this function as public. I tried to call it from another form and my DataTable seems to be Nothing. Why? How can I use it again?

1

There are 1 best solutions below

0
On

I have my answer, my base windows is not a singleton. The popup window doesn't exchange with the base window, it created a new window and this 2nd window hasn't been initialized.