Click here to Skip to main content
15,916,030 members
Home / Discussions / C#
   

C#

 
Questionchange data by using a removable disk Pin
Member 1504609314-Jan-21 6:40
Member 1504609314-Jan-21 6:40 
AnswerRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 7:47
mveOriginalGriff14-Jan-21 7:47 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 9:11
Member 1504609314-Jan-21 9:11 
GeneralRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 9:21
mveOriginalGriff14-Jan-21 9:21 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 9:36
Member 1504609314-Jan-21 9:36 
GeneralRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 9:41
mveOriginalGriff14-Jan-21 9:41 
GeneralRe: change data by using a removable disk Pin
Member 1504609314-Jan-21 9:48
Member 1504609314-Jan-21 9:48 
GeneralRe: change data by using a removable disk Pin
OriginalGriff14-Jan-21 11:10
mveOriginalGriff14-Jan-21 11:10 
GeneralRe: change data by using a removable disk Pin
Member 1504609315-Jan-21 1:26
Member 1504609315-Jan-21 1:26 
GeneralRe: change data by using a removable disk Pin
CHill6015-Jan-21 1:32
mveCHill6015-Jan-21 1:32 
GeneralRe: change data by using a removable disk Pin
OriginalGriff15-Jan-21 1:38
mveOriginalGriff15-Jan-21 1:38 
GeneralRe: change data by using a removable disk Pin
Mycroft Holmes14-Jan-21 11:04
professionalMycroft Holmes14-Jan-21 11:04 
GeneralRe: change data by using a removable disk Pin
Member 1504609315-Jan-21 5:45
Member 1504609315-Jan-21 5:45 
GeneralRe: change data by using a removable disk Pin
Dave Kreskowiak15-Jan-21 6:28
mveDave Kreskowiak15-Jan-21 6:28 
AnswerRe: change data by using a removable disk Pin
Ralf Meier15-Jan-21 9:05
mveRalf Meier15-Jan-21 9:05 
GeneralRe: change data by using a removable disk Pin
Richard Andrew x6418-Jan-21 11:55
professionalRichard Andrew x6418-Jan-21 11:55 
AnswerRe: change data by using a removable disk Pin
Richard MacCutchan14-Jan-21 8:55
mveRichard MacCutchan14-Jan-21 8:55 
AnswerRe: change data by using a removable disk Pin
Gerry Schmitz15-Jan-21 2:26
mveGerry Schmitz15-Jan-21 2:26 
QuestionNull reference exception occurs for no reason Pin
Alex Dunlop14-Jan-21 6:05
Alex Dunlop14-Jan-21 6:05 
AnswerRe: Null reference exception occurs for no reason Pin
OriginalGriff14-Jan-21 6:08
mveOriginalGriff14-Jan-21 6:08 
SuggestionRe: Null reference exception occurs for no reason Pin
Richard Deeming14-Jan-21 6:34
mveRichard Deeming14-Jan-21 6:34 
Alex Dunlop wrote:
compiler says: System.NullReferenceException
The compiler doesn't generate that exception; the runtime does.

If it was a compiler error, you wouldn't be able to run your application at all, because you wouldn't be able to compile it.

Alex Dunlop wrote:
new FileStream(Application.StartupPath + @"\MyGrid.xml"
You shouldn't try to write files in the same directory as your application. When it's deployed, it will most likely be stored under the "Program Files" directory, and it would need to run as an admin account to have permission to write to its own directory.

See Where Should I Store My Data?[^] for suggestions of more appropriate locations to save your files.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Null reference exception occurs for no reason Pin
OriginalGriff14-Jan-21 6:49
mveOriginalGriff14-Jan-21 6:49 
AnswerRe: Null reference exception occurs for no reason Pin
Ralf Meier14-Jan-21 6:37
mveRalf Meier14-Jan-21 6:37 
GeneralRe: Null reference exception occurs for no reason Pin
Alex Dunlop14-Jan-21 6:49
Alex Dunlop14-Jan-21 6:49 
GeneralRe: Null reference exception occurs for no reason Pin
Ralf Meier14-Jan-21 6:51
mveRalf Meier14-Jan-21 6:51 

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.