Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: query group and Sum number has got Conditional ? Pin
OriginalGriff27-Nov-16 0:40
mveOriginalGriff27-Nov-16 0:40 
AnswerRe: query group and Sum number has got Conditional ? Pin
Wendelius27-Nov-16 1:09
mentorWendelius27-Nov-16 1:09 
GeneralRe: query group and Sum number has got Conditional ? Pin
Member 245846727-Nov-16 16:46
Member 245846727-Nov-16 16:46 
QuestionHow to set the password in setup file in c# Pin
Member 1287006524-Nov-16 22:49
Member 1287006524-Nov-16 22:49 
AnswerRe: How to set the password in setup file in c# Pin
Richard MacCutchan24-Nov-16 22:54
mveRichard MacCutchan24-Nov-16 22:54 
QuestionHow to get the filename of a button's background image Pin
Member 1283227724-Nov-16 19:50
Member 1283227724-Nov-16 19:50 
AnswerRe: How to get the filename of a button's background image Pin
Richard MacCutchan24-Nov-16 21:44
mveRichard MacCutchan24-Nov-16 21:44 
QuestionCan't save to text file with visual c# universal app. Pin
ken7624-Nov-16 9:49
ken7624-Nov-16 9:49 
C#
I can't save any changes to the text file settings.txt , but reading the file works.
 The code is

 private async void LedShow_Loaded(object sender, RoutedEventArgs e)
 {
 var path = @"settings.txt";
 var folder = Windows.ApplicationModel.Package.Current.Installed Location;
 var file = await folder.GetFileAsync(path);
 var lines = await Windows.Storage.FileIO.ReadLinesAsync(file);
 sliderDelay.Value = Convert.ToInt32(lines[0]);
 textBlockDelayValue.Text = lines[0] + " seconds";
 buttonSave.IsEnabled = false;
 }

 and the error message is 

 An exception of type 'System.UnauthorizedAccessException' occurred in System.Private.CoreLib.dll but was not handled in user code
 Access is denied. (Excep_FromHResult 0x80070005) occurred
 Can someone help me? 

AnswerRe: Can't save to text file with visual c# universal app. Pin
Midi_Mick24-Nov-16 14:49
professionalMidi_Mick24-Nov-16 14:49 
QuestionAre there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 7:11
Rıza Berkay Ayçelebi24-Nov-16 7:11 
AnswerRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 7:21
mveDave Kreskowiak24-Nov-16 7:21 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 7:51
Rıza Berkay Ayçelebi24-Nov-16 7:51 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 7:54
mveDave Kreskowiak24-Nov-16 7:54 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 8:00
Rıza Berkay Ayçelebi24-Nov-16 8:00 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 8:09
mveDave Kreskowiak24-Nov-16 8:09 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 8:15
Rıza Berkay Ayçelebi24-Nov-16 8:15 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 8:17
mveDave Kreskowiak24-Nov-16 8:17 
AnswerRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
NotPolitcallyCorrect24-Nov-16 7:31
NotPolitcallyCorrect24-Nov-16 7:31 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 7:52
Rıza Berkay Ayçelebi24-Nov-16 7:52 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
NotPolitcallyCorrect24-Nov-16 7:57
NotPolitcallyCorrect24-Nov-16 7:57 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 8:01
Rıza Berkay Ayçelebi24-Nov-16 8:01 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
NotPolitcallyCorrect24-Nov-16 8:06
NotPolitcallyCorrect24-Nov-16 8:06 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 8:12
Rıza Berkay Ayçelebi24-Nov-16 8:12 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Dave Kreskowiak24-Nov-16 8:15
mveDave Kreskowiak24-Nov-16 8:15 
GeneralRe: Are there someone for helping me.(Huffman İmage Compression with c#) Pin
Rıza Berkay Ayçelebi24-Nov-16 8:25
Rıza Berkay Ayçelebi24-Nov-16 8:25 

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.