Click here to Skip to main content
15,909,898 members
Home / Discussions / C#
   

C#

 
Questionpng to jpg Pin
nryk25-Jul-09 11:03
nryk25-Jul-09 11:03 
AnswerRe: png to jpg Pin
Christian Graus25-Jul-09 12:53
protectorChristian Graus25-Jul-09 12:53 
AnswerRe: png to jpg Pin
BillWoodruff25-Jul-09 15:19
professionalBillWoodruff25-Jul-09 15:19 
AnswerRe: png to jpg Pin
Joe Woodbury25-Jul-09 16:34
professionalJoe Woodbury25-Jul-09 16:34 
QuestionDeletion via gridview. Pin
Omar Akhtar Sheikh25-Jul-09 9:56
Omar Akhtar Sheikh25-Jul-09 9:56 
AnswerRe: Deletion via gridview. Pin
Abhijit Jana25-Jul-09 10:05
professionalAbhijit Jana25-Jul-09 10:05 
AnswerRe: Deletion via gridview. Pin
SajjadZare25-Jul-09 16:57
SajjadZare25-Jul-09 16:57 
QuestionWPF / C# Listview Selected Item Pin
Jacob Dixon25-Jul-09 9:33
Jacob Dixon25-Jul-09 9:33 
AnswerRe: WPF / C# Listview Selected Item Pin
Abhijit Jana25-Jul-09 9:40
professionalAbhijit Jana25-Jul-09 9:40 
GeneralRe: WPF / C# Listview Selected Item Pin
Jacob Dixon25-Jul-09 17:06
Jacob Dixon25-Jul-09 17:06 
Question[Message Deleted] Pin
Omar Akhtar Sheikh25-Jul-09 9:31
Omar Akhtar Sheikh25-Jul-09 9:31 
AnswerCP Member : Please Ignore - Crosspost Pin
Abhijit Jana25-Jul-09 9:45
professionalAbhijit Jana25-Jul-09 9:45 
Questionhow to disable keyboard.......... [modified] Pin
Member 423560125-Jul-09 8:24
Member 423560125-Jul-09 8:24 
AnswerRe: how to disable keyboard.......... Pin
Abhijit Jana25-Jul-09 8:48
professionalAbhijit Jana25-Jul-09 8:48 
AnswerRe: how to disable keyboard.......... Pin
PIEBALDconsult25-Jul-09 8:50
mvePIEBALDconsult25-Jul-09 8:50 
Questionmark as unsaved if the user changes ANYTHING? Pin
Megidolaon25-Jul-09 7:58
Megidolaon25-Jul-09 7:58 
I'm writing an app where you can input a lot of data in a lot of different controls (textboxes, updowns, etc.)

Now I want to implement a function you see in most other apps where you input information and save it: the moment the user changes a saved file or inputs something into a new file, the file is unsaved and upon closing it, the user will be prompted if he wants to save changes.

The only way I can think of to achieve this is to use each input control's change event (change text for textbox, change value for UpDown, etc.) and set an "unsaved" bool to true.
When the user wants to exit the app, check the bool and display a message box if necessary.

Is there an easier way other than using all the events (I have a lot of data, so that would be about half the code of each form or more)?
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
Mike Ellison25-Jul-09 8:48
Mike Ellison25-Jul-09 8:48 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
PIEBALDconsult25-Jul-09 10:49
mvePIEBALDconsult25-Jul-09 10:49 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
DaveyM6925-Jul-09 11:29
professionalDaveyM6925-Jul-09 11:29 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
Mike Ellison25-Jul-09 17:39
Mike Ellison25-Jul-09 17:39 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
Guffa25-Jul-09 22:15
Guffa25-Jul-09 22:15 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
Megidolaon26-Jul-09 6:18
Megidolaon26-Jul-09 6:18 
AnswerRe: mark as unsaved if the user changes ANYTHING? Pin
Mike Ellison1-Aug-09 11:00
Mike Ellison1-Aug-09 11:00 
QuestionScrollBar in Listview Pin
SajjadZare25-Jul-09 6:31
SajjadZare25-Jul-09 6:31 
AnswerRe: ScrollBar in Listview Pin
Abhijit Jana25-Jul-09 9:18
professionalAbhijit Jana25-Jul-09 9:18 

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.