프로퍼티에 관리 파일이 있다.

 

 

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _20200502
{
    public partial class form : Form
    {
        public form()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Version version = Assembly.GetEntryAssembly().GetName().Version;
            this.Text = "Title: "+ version;

        }
    }
}

 위 프로퍼티의 어셈블리 버전 불러와 타이틀에 적용시킬수 있다.

 

 


> 예제 1

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _20200502
{
    public partial class form : Form
    {
        public form()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string title = "lion";
            DateTime buildDate = Convert.ToDateTime("2020-04-30");
            Version version = Assembly.GetEntryAssembly().GetName().Version;
   
            this.Text = string.Format("{0} Ver {1}.{2} / Build Time ({3})",
                title,
                version.Major, version.Minor,
                buildDate.ToString("yyyy-MM-dd")
                ); 
        }
    }
}

 

'■ c# > WinForm' 카테고리의 다른 글

[winform] - ICON 프로그래실행 아이콘 / 폼 아이콘  (0) 2020.05.02

> 프로그램 실행 아이콘 설정

솔루션, 우클릭 속성

 

 


 

> 폼 상단 아이콘 설정

폼 선택

 

'■ c# > WinForm' 카테고리의 다른 글

[winform] - 타이틀 버전 관리  (0) 2020.05.02

+ Recent posts