laatzen/MiniPrf/Ui/FrmHistory.cs
Thomas Wiedebusch aea2225151 MiniPrf: - initial setup,
FM2014: - initial setup
2025-11-13 16:44:57 +01:00

38 lines
905 B
C#

using System;
using System.Windows.Forms;
namespace Sensus.MiniPrf.Ui
{
/// <summary>
/// History display of update process
/// </summary>
[Serializable]
public partial class FrmHistory : Form
{
/// <summary>
/// Ctor
/// </summary>
public FrmHistory()
{
InitializeComponent();
}
private void FrmHistory_FormClosing(Object sender, FormClosingEventArgs e)
{
//avoid destroying of object
e.Cancel = true;
//instead just hide it
Hide();
}
/// <summary>
/// Select always the last line for the display.
/// </summary>
private void rtbHistory_TextChanged(Object sender, EventArgs e)
{
rtbHistory.SelectionStart = rtbHistory.Text.Length;
rtbHistory.ScrollToCaret();
}
}
}