I have a user control and a form. i allocate an arraylist in the usercontrol.
i try to access the contents of the arraylist from the form in c#. But the arraylist count shows 0 in the form.
the arraylist class is declared in a library which i use in the user control to allocate.
the user control is placed in a formwizard, there is a button in the formwizard, on clicking this button we invoke the form which is trying to access the usercontrol arraylist.
Please suggest how can i access the contents of the arraylist from the form.
Awaiting a reply.
Sincerely
G
Loading
ChrisPosted Feb 4, 2006, 11:24 PM
Incidentally if you're using Visual Studio 2005 you should prob be using List instead of array list
That's the skeleton of the UserControl. You should even be able to add items at design-time through the Forms Designer. Bear in mind anything you add there will be attached to that particular form, not the control in general. You can access the items through... (in your form)