Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
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 
QuestionHelp with WIA scanning control. Pin
CodeBase2525-Jul-09 6:31
CodeBase2525-Jul-09 6:31 
Questiondatabound comboboxes in datagridview. Pin
tonks8425-Jul-09 6:27
tonks8425-Jul-09 6:27 
AnswerRe: databound comboboxes in datagridview. Pin
Omar Akhtar Sheikh25-Jul-09 8:29
Omar Akhtar Sheikh25-Jul-09 8:29 
GeneralRe: databound comboboxes in datagridview. Pin
tonks8425-Jul-09 8:54
tonks8425-Jul-09 8:54 
Question[Message Deleted] Pin
neha_rai25-Jul-09 5:36
neha_rai25-Jul-09 5:36 
Answerwaiting for reply Pin
neha_rai25-Jul-09 9:13
neha_rai25-Jul-09 9:13 
AnswerRe: moving points Pin
Henry Minute25-Jul-09 13:20
Henry Minute25-Jul-09 13:20 
QuestionToolStrip Overflow button event Pin
satsumatable25-Jul-09 3:40
satsumatable25-Jul-09 3:40 

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.