#region well documented sample method sample
/// <summary>
/// Saves the form size when it is resized.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void SampleBrowser_SizeChanged(object sender, EventArgs e)
{
Properties.Settings.Default.FormClientSize = this.ClientSize;
}
/// <summary>
/// Saves all settings when form is closed.
/// </summary>
#endregion
Note: In addition to "param", one can use:
/// <returns>State of log in</returns>
Also: The #endregion must be on a new line!
1 comment:
Well written article.
Post a Comment