Hi.....
private void button1_Click(object sender, EventArgs e)
{
Decimal[] mydecimal = new Decimal[10];
for (int i = 0; i < mydecimal.Length; i++)
{
mydecimal[i] += i;
}
foreach (Decimal mydec in mydecimal)
{
int count = 0;
MessageBox.Show("I am button "+ Convert.ToInt32(count)+" in mydecimal");
count += count + 1;
}
I have this code and have made an array of decimal objects....
Each time i run it... it comes as "I am button 0 in mydecimal".
I want it to say..."I am button 1 in mydecimal", "I am button 2 in mydecimal" etc
thanks