Answers for "c sharp check if it is the first time a prgram has run"

C#
1

C# check if is first run

if(Properties.Settings.Default.FirstRun == true)
{ lblGreetings.Text = "Welcome New User";
  //Change the value since the program has run once now
  Properties.Settings.Default.FirstRun = false;
  Properties.Settings.Default.Save(); }
else
{ lblGreetings.Text = "Welcome Back User"; }
Posted by: Guest on June-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language