K
Kai Bohli
Hi all
My app is an Outlook style app - that is there's a mainform and I load usercontrols in a panel at
runtime. These usercontrols acts like forms.
What I need to do: Pass two strings into a function on the mainform (from the usercontrols)
Using public properties won't work cause the usercontrols doesn't "know" about the mainform.
For the same reason, I can't use public funtions. Getting the usercontrols parent won't work either.
I've tried to use delegates but can't get it to work. All the samples I've seen uses a class inside
the same form that uses the function. My problem is that I can't figure out how to call the delegate
from another form.
Any help are greatly appreciated !
TIA
Best wishes
Kai Bohli
(e-mail address removed)
Norway
My app is an Outlook style app - that is there's a mainform and I load usercontrols in a panel at
runtime. These usercontrols acts like forms.
What I need to do: Pass two strings into a function on the mainform (from the usercontrols)
Using public properties won't work cause the usercontrols doesn't "know" about the mainform.
For the same reason, I can't use public funtions. Getting the usercontrols parent won't work either.
I've tried to use delegates but can't get it to work. All the samples I've seen uses a class inside
the same form that uses the function. My problem is that I can't figure out how to call the delegate
from another form.
Any help are greatly appreciated !
TIA
Best wishes
Kai Bohli
(e-mail address removed)
Norway