ultraman
Centurion
Hello everyone !
My problem is that I'm trying to return a DataSet to the Main Form of my App from an instance of frmSearch. But I can't, since I don't now how to access the Main Form instance from there ?
I first added a new creator to frmSearch with the calling Form in argument. But this parameter is declared as Form (not as frmMain)because I want it to be as generic as possible.
What would be the best way to pass a parameter to a Form and returns something ? What I often did in VB6 was to call a Public Function of the frmMain or a Property, but I have troubles managing it in .NET. If you have any links to good tutorials with code sample on that topic, it would be great !
Thanx in advance !
Ultraman
My problem is that I'm trying to return a DataSet to the Main Form of my App from an instance of frmSearch. But I can't, since I don't now how to access the Main Form instance from there ?
I first added a new creator to frmSearch with the calling Form in argument. But this parameter is declared as Form (not as frmMain)because I want it to be as generic as possible.
What would be the best way to pass a parameter to a Form and returns something ? What I often did in VB6 was to call a Public Function of the frmMain or a Property, but I have troubles managing it in .NET. If you have any links to good tutorials with code sample on that topic, it would be great !
Thanx in advance !
Ultraman