Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: Label not getting updated. Pin
V.8-Dec-16 3:44
professionalV.8-Dec-16 3:44 
Questionkinect v2 Pin
Member 128901727-Dec-16 5:07
Member 128901727-Dec-16 5:07 
AnswerRe: kinect v2 Pin
Afzaal Ahmad Zeeshan7-Dec-16 6:42
professionalAfzaal Ahmad Zeeshan7-Dec-16 6:42 
GeneralRe: kinect v2 Pin
Member 128901729-Dec-16 22:59
Member 128901729-Dec-16 22:59 
AnswerRe: kinect v2 Pin
Eddy Vluggen7-Dec-16 7:28
professionalEddy Vluggen7-Dec-16 7:28 
GeneralRe: kinect v2 Pin
Member 128901729-Dec-16 23:04
Member 128901729-Dec-16 23:04 
AnswerRe: kinect v2 Pin
Gerry Schmitz7-Dec-16 8:22
mveGerry Schmitz7-Dec-16 8:22 
QuestionWinForms CheckFirstRun() Pin
f.loschiavo5-Dec-16 15:01
f.loschiavo5-Dec-16 15:01 
Hi All,

I am using the following code to display a text file when the application first runs but have a slight issue.

C#
private static void CheckFirstRun()
{
    if (Settings.Default.FirstRun)
    {
    	Process.Start("notepad.exe", "release-notes.txt");
    	Settings.Default.FirstRun = false;
    	Settings.Default.Save();
    }
}



The setting default is set to True. It worked fine the first time I deployed it using ClickOnce and I was expecting FirstRun to default back to True on the next deployment but it's storing the setting as False.

All my google searches point to persisting the setting between deployments but in this instance I want the opposite to happen. I need the setting to default back to True so I can show the release notes.

Can anyone advise on what I am missing?
AnswerRe: WinForms CheckFirstRun() Pin
Midi_Mick5-Dec-16 15:15
professionalMidi_Mick5-Dec-16 15:15 
AnswerRe: WinForms CheckFirstRun() Pin
Jon McKee5-Dec-16 18:42
professionalJon McKee5-Dec-16 18:42 
AnswerRe: WinForms CheckFirstRun() Pin
f.loschiavo6-Dec-16 12:51
f.loschiavo6-Dec-16 12:51 
QuestionSetup Web Folder On IIS Pin
MadDashCoder5-Dec-16 10:49
MadDashCoder5-Dec-16 10:49 
AnswerRe: Setup Web Folder On IIS Pin
Gerry Schmitz5-Dec-16 11:59
mveGerry Schmitz5-Dec-16 11:59 
GeneralRe: Setup Web Folder On IIS Pin
MadDashCoder5-Dec-16 22:36
MadDashCoder5-Dec-16 22:36 
GeneralRe: Setup Web Folder On IIS Pin
Gerry Schmitz6-Dec-16 6:22
mveGerry Schmitz6-Dec-16 6:22 
AnswerRe: Setup Web Folder On IIS Pin
Pete O'Hanlon5-Dec-16 23:46
mvePete O'Hanlon5-Dec-16 23:46 
Questioncan some one encrypt these codes Pin
Member 128824722-Dec-16 0:51
Member 128824722-Dec-16 0:51 
AnswerRe: can some one encrypt these codes PinPopular
OriginalGriff2-Dec-16 1:02
mveOriginalGriff2-Dec-16 1:02 
GeneralRe: can some one encrypt these codes Pin
Jon McKee3-Dec-16 17:33
professionalJon McKee3-Dec-16 17:33 
AnswerRe: can some one encrypt these codes Pin
Nathan Minier2-Dec-16 1:27
professionalNathan Minier2-Dec-16 1:27 
AnswerRe: can some one encrypt these codes PinPopular
Pete O'Hanlon2-Dec-16 2:25
mvePete O'Hanlon2-Dec-16 2:25 
GeneralRe: can some one encrypt these codes Pin
OriginalGriff2-Dec-16 2:33
mveOriginalGriff2-Dec-16 2:33 
GeneralRe: can some one encrypt these codes Pin
Pete O'Hanlon2-Dec-16 2:38
mvePete O'Hanlon2-Dec-16 2:38 
AnswerRe: can some one encrypt these codes Pin
Jochen Arndt2-Dec-16 3:09
professionalJochen Arndt2-Dec-16 3:09 
AnswerRe: can some one encrypt these codes Pin
Gerry Schmitz2-Dec-16 6:45
mveGerry Schmitz2-Dec-16 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.