C#
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 SinghRank #66 · 26.2K reputationPosted Jun 1, 2022, 8:30 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 1, 2022, 4:00 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Jun 1, 2022, 4:04 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jun 1, 2022, 7:05 AM EDT
shah MominRank #6,924 · 253 reputationPosted Jun 1, 2022, 8:20 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jun 1, 2022, 8:30 AM EDT
shah MominRank #6,924 · 253 reputationPosted Jun 1, 2022, 8:31 AM EDT
shah MominRank #6,924 · 253 reputationPosted Jun 1, 2022, 8:33 AM EDT
Thank You For ALL
Sachin Singh Pm Message
shah MominRank #6,924 · 253 reputationPosted Jun 1, 2022, 8:47 AM EDT