1) i am having two different forms. and i would like to have the text in the textbox of form 1 to be in form 2 when i close form 1. is there any ways to do it?
2) i am supposed to print details of an object in the arraylist. the object has a few members data in it... i tried using the codes below... but instead of getting what i want, it keeps giving me the eventid... anyone knows why??
Code:
public CalendarEvent GetEvents(string eventid)
{
CalendarEvent ce = new CalendarEvent();
CalendarEvent a = new CalendarEvent();
int t = Convert.ToInt32(eventid);
for (int i = 0; i < EventArrayList.Count; i++)
{
ce = (CalendarEvent)EventArrayList[i];
if (t <= EventArrayList.Count)
{
MessageBox.Show("Please enter a valid event Id");
}
if (ce.eventid == t)
{
a.eventid = ce.eventid;
a.duration = ce.duration;
a.comments = ce.comments;
a.category = ce.category;
a.title = ce.title;
MessageBox.Show(Convert.ToString(a.eventid));
MessageBox.Show(Convert.ToString(a.duration));
}
}
return a;
}
thanks for your time
smile,
nerdy_gal ^^

