private void DutySpotButton_Click(object sender, EventArgs e)
{
Button button = sender as Button;
lblSpotID.Text = button.Name;
string[] strArray = button.Text.Split(new string[1]
{
Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
txtSpotName.Text = strArray[0];
numMaxLimit.Text = (Decimal)int.Parse(strArray[1]);
lblSpotRow.Text =tblDutySpot.GetRow((Control)button).ToString();
lblSpotCol.Text =tblDutySpot.GetColumn((Control)button).ToString();
if (button.BackColor == Color.Red)
{
rbtnOffSpot.Checked = true;
rbtnOnSpot.Checked = false;
}
else
{
rbtnOnSpot.Checked = true;
rbtnOffSpot.Checked = false;
}
}
Line Number 11. numMaxLimit.Text = (Decimal)int.Parse(strArray[1]);
textboxn name = numMaxLimit.Text
Sachin SinghPosted Jun 1, 2022, 12:30 PM
shah MominPosted Jun 1, 2022, 12:47 PM
shah MominPosted Jun 1, 2022, 12:33 PM
Thank You For ALL
Sachin Singh Pm Message
shah MominPosted Jun 1, 2022, 12:31 PM
Amit MohantyPosted Jun 1, 2022, 12:30 PM
shah MominPosted Jun 1, 2022, 12:20 PM
Amit MohantyPosted Jun 1, 2022, 11:05 AM
Gajendra JangidPosted Jun 1, 2022, 8:04 AM
Sachin SinghPosted Jun 1, 2022, 8:00 AM