I have a class ROLE with all the properties declared. I am adding the
roles to the list
I tried this and gave me an error
*****************************************************
public RoleForm(int RoleID, List<T> lRole)
{
InitializeComponent();
_ID = RoleID;
}
**************************************************************
ERROR:Error 1 The type or namespace name 'T' could not be found (are you
missing a using directive or an assembly reference?)
*****************************************************
in message Vivek,
Again, why not just call a method on the child form, passing the
list to it? It's like passing a parameter to any other method.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
It sure did. I'll have to find out how to pass the list to the child
form. can you please mention if you know an efficient way.
Thanks
"Nicholas Paldino [.NET/C# MVP]" <
[email protected]>
wrote in message Vivek,
Why not pass the List<T> to the child form when you create it from
the parent? You can pass it through a constructor, through a
property, public field, or method.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
I wish to update the LIST<T> created in PARENT FORM from the CHILD
FORM. Currently I have declared the LIST<Role> as public in my
parent form. What can I do to update the <LIST>?
Thanks