Hi!
I'm working with the compact framework and i'm making an app for a windows mobile standard. I have an array which contain phonenumbers, and i want to add a submenu foreach number i find in that array. These submenus must be clickable, but i can't figure out how to do it.
This is my code:
// "menuItemRight" is my main menu
// Send a message to the person
MenuItem smsMenu = new MenuItem();
smsMenu.Text = "Melding";
menuItemRight.MenuItems.Add(smsMenu);
foreach (string Number in aPhoneNumbers)
{
MenuItem mNumber = new MenuItem();
string sNumber = Number.Trim();
mNumber.Text = sNumber.Trim();
//SMS
mSMS.Text = sNumber.Trim();
smsMenu.MenuItems.Add(mSMS);
//mNumber.Click += new EventHandler(this.MenuClick);
}
So what i want is a common eventhandler, but i don't know how to implement this.
Hope someone can help me :)
Thanks in advance