private static int iCount = 0; button_click(object sender,EventArgs e) { iCount = iCount + 1; lblText.Text = iCount.ToString(); }
private void btnClick_Click(object sender, RoutedEventArgs e) { string s = lblCount.Content.ToString(); int i = Convert.ToInt32(s); i = i + 1; lblCount.Content = i.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)