Louie De Janeiru

Build date display at Form.Text 본문

C#

Build date display at Form.Text

Louiey 2020. 12. 29. 16:42
using System.IO;
using System.Reflection;

private void Form1_Load(object sender, System.EventArgs e)
{
	...
    DateTime buildDate = new FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime;
    this.Text += "  ( Built : " + buildDate + ")";
}

 

'C#' 카테고리의 다른 글

Dialog box open  (0) 2024.07.16
Display build date at Title Bar  (0) 2021.03.19
Basic code for normal framework  (0) 2020.11.17
Screen Record  (0) 2020.09.16
Properties.Settings.Default  (0) 2019.09.24