top of page

Access Private Controls/Variables from Child From to Parent From

  • Writer: Rumesh Aponso (RMAX)
    Rumesh Aponso (RMAX)
  • Dec 10, 2024
  • 1 min read

We could encapsulate the control variables / define and use the Get Set methods.


#region Methods
public SalNumber GetExecutionTmplSq()
{
	#region Actions
	return this.dfnExecutionTmplSq.Number;
	#endregion
}

public void SetTcActivity(SalNumber nTcActivity)
{
	#region Actions
	if (nTcActivity == 1)
	{
		dfnCExecutionTime.Enabled = true;
	}
	else
	{
		dfnCExecutionTime.Enabled = false;
	}
	#endregion
}
#endregion

Comments


Copyright © 2025 RMAXOneNote

  • Online CV
  • LinkedIn
  • Youtube
  • GitHub
  • Blogger
bottom of page