728x90
๋ฐ์ํ
ํ๋ก์ ํธ -> ํ๋ก์ ํธ.์์ฑ -> ์ค์ ์์ ์ฌ์ง ์ฒ๋ผ ์ ์ฅ ํ๊ณ ์ ํ๋ ๋ณ์๋ฅผ ๋ง๋ ๋ค.
private void Form1_Load(object sender, EventArgs e)
{
tbIpAdress.Text = Properties.Settings.Default.tbIpAdress_Value;
tbCarWashSerial.Text = Properties.Settings.Default.tbCarWashSerial_Value;
}
์์ ์ฝ๋์ฒ๋ผ ์ฝ์ด ์ค๊ธฐ๋ง ํ๋ฉด ๋๋ค.
private void btnSave_Click(object sender, EventArgs e)
{
Properties.Settings.Default.tbIpAdress_Value = tbIpAdress.Text;
Properties.Settings.Default.tbCarWashSerial_Value = tbCarWashSerial.Text;
Properties.Settings.Default.Save();
MessageBox.Show("์ค์ ์ ์ฅ ์๋ฃ");
}
๋ณ์์ ๊ฐ์ ๋ฃ์๋๋ ๋งค์ฐ ๊ฐ๋จํ๋ค.
์ถ์ฒ:
https://gdlseed.tistory.com/17
C# ์ค์ ๊ฐ ์ ์ฅ ํ๊ธฐ - ๋ณ๋ ํ์ผ ์์ฑ X
ํ๋ก์ ํธ -> ํ๋ก์ ํธ.์์ฑ -> ์ค์ ์์ ์ฌ์ง ์ฒ๋ผ ์ ์ฅ ํ๊ณ ์ ํ๋ ๋ณ์๋ฅผ ๋ง๋ ๋ค. private void Form1_Load(object sender, EventArgs e) { tbIpAdress.Text = Properties.Settings.Default.tbIpAdress_Value;..
gdlseed.tistory.com
728x90
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > C#' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
C# - CookieContainer ์ฟ ํค ๊ฐ ๊ฐ์ ธ์ค๊ธฐ (0) | 2022.10.03 |
---|---|
C# - RichTextBox ์๊น ์ง์ (1) | 2022.09.29 |
C# - Application.Exit() ๋ช ๋ น์ด ์๋ ๊ฒฝ์ฐ (Environment.Exit(Environment.ExitCode)) (0) | 2022.09.26 |
C# - .NET ๋์ปดํ์ผ๋ฌ ๋ฐ ์ด์ ๋ธ๋ฆฌ ๋ธ๋ผ์ฐ์ (dotPeek) (0) | 2022.09.04 |
C# - setTimeout ๊ตฌํ (0) | 2022.08.28 |