Click here to Skip to main content
15,919,178 members
Home / Discussions / C#
   

C#

 
AnswerRe: Save and Save as Pin
Pete O'Hanlon2-Dec-10 10:36
mvePete O'Hanlon2-Dec-10 10:36 
GeneralRe: Save and Save as Pin
GenJerDan2-Dec-10 11:25
GenJerDan2-Dec-10 11:25 
GeneralRe: Save and Save as Pin
squerley2-Dec-10 11:39
squerley2-Dec-10 11:39 
GeneralRe: Save and Save as Pin
Pete O'Hanlon2-Dec-10 11:55
mvePete O'Hanlon2-Dec-10 11:55 
GeneralRe: Save and Save as Pin
Dalek Dave2-Dec-10 12:26
professionalDalek Dave2-Dec-10 12:26 
AnswerRe: Save and Save as Pin
GenJerDan2-Dec-10 11:29
GenJerDan2-Dec-10 11:29 
GeneralRe: Save and Save as Pin
squerley2-Dec-10 12:15
squerley2-Dec-10 12:15 
GeneralRe: Save and Save as Pin
GenJerDan2-Dec-10 17:22
GenJerDan2-Dec-10 17:22 
Some people will say globals are naughty, and they're often right. In this case, not so much.

But, just to keep them happy, you don't really need a separate variable for it...if you put the filename (or an initial fake filename like "unsaved") in the title bar and append a * to it when it needs to be saved and remove it when it has been saved.

Then, instead of checking some variable, you just check the Text property of the form. If the last character is a *, then it needs to be saved.

Same principle, just cooler. Laugh | :laugh:

And more work for you, of course. But that's a good thing, if you really want to learn this stuff.
GeneralRe: Save and Save as Pin
Dalek Dave2-Dec-10 12:27
professionalDalek Dave2-Dec-10 12:27 
AnswerRe: Save and Save as Pin
Luc Pattyn2-Dec-10 12:10
sitebuilderLuc Pattyn2-Dec-10 12:10 
AnswerRe: Save and Save as Pin
_Erik_3-Dec-10 3:22
_Erik_3-Dec-10 3:22 
GeneralRe: Save and Save as Pin
squerley3-Dec-10 8:59
squerley3-Dec-10 8:59 
GeneralRe: Save and Save as Pin
squerley4-Dec-10 16:08
squerley4-Dec-10 16:08 
GeneralRe: Save and Save as Pin
_Erik_6-Dec-10 23:35
_Erik_6-Dec-10 23:35 
GeneralRe: Save and Save as Pin
squerley10-Dec-10 15:46
squerley10-Dec-10 15:46 
QuestionHow to delete word field code from C# Pin
Andraw Tang2-Dec-10 8:45
Andraw Tang2-Dec-10 8:45 
QuestionXPathNavigator iterate and write Pin
Mark F.2-Dec-10 5:38
Mark F.2-Dec-10 5:38 
AnswerRe: XPathNavigator iterate and write Pin
cechode2-Dec-10 13:15
cechode2-Dec-10 13:15 
GeneralRe: XPathNavigator iterate and write [modified] Pin
Mark F.3-Dec-10 9:00
Mark F.3-Dec-10 9:00 
AnswerRe: XPathNavigator iterate and write Pin
cechode3-Dec-10 9:34
cechode3-Dec-10 9:34 
QuestionAvoid Peer 2 Peer acces Pin
utunity2-Dec-10 5:08
utunity2-Dec-10 5:08 
AnswerRe: Avoid Peer 2 Peer acces Pin
musefan2-Dec-10 5:36
musefan2-Dec-10 5:36 
GeneralRe: Avoid Peer 2 Peer acces Pin
utunity2-Dec-10 5:45
utunity2-Dec-10 5:45 
GeneralRe: Avoid Peer 2 Peer acces Pin
musefan2-Dec-10 5:51
musefan2-Dec-10 5:51 
GeneralRe: Avoid Peer 2 Peer acces Pin
Luc Pattyn2-Dec-10 7:48
sitebuilderLuc Pattyn2-Dec-10 7:48 

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.