Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionLock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one9-Feb-14 22:59
ahmed_one9-Feb-14 22:59 
Dear All,

I am using Visual Studio 2010 ultimate, C# language and MySql as backend database.

I've a Voucher Form, which is Master Detail. After user enters voucher data, he save the data in database by clicking save button. Now I need to add a post button, which when click perform a update to Voucher record and mark it as POSTED. This is not an issue as it simply required an Sql update statement.

What I need is a way, that after POSTED is marked, no one can edit the record, even when it is search by any user. What is the best way to do it? Are programmers do it by setting readonly property of controls true/false? Or there are other options available?

Any ideas/suggestions/samples much appreciated.

Best regards

Ahmed
AnswerRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Keith Barrow10-Feb-14 1:04
professionalKeith Barrow10-Feb-14 1:04 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one10-Feb-14 1:13
ahmed_one10-Feb-14 1:13 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Keith Barrow10-Feb-14 1:54
professionalKeith Barrow10-Feb-14 1:54 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one10-Feb-14 2:36
ahmed_one10-Feb-14 2:36 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Eddy Vluggen11-Feb-14 8:20
professionalEddy Vluggen11-Feb-14 8:20 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one11-Feb-14 17:21
ahmed_one11-Feb-14 17:21 
Questionword automatic rotation Pin
kskumaran9-Feb-14 22:15
kskumaran9-Feb-14 22:15 
GeneralRe: word automatic rotation Pin
harold aptroot9-Feb-14 22:18
harold aptroot9-Feb-14 22:18 
GeneralRe: word automatic rotation Pin
kskumaran9-Feb-14 22:21
kskumaran9-Feb-14 22:21 
GeneralRe: word automatic rotation Pin
harold aptroot9-Feb-14 22:26
harold aptroot9-Feb-14 22:26 
GeneralRe: word automatic rotation Pin
kskumaran10-Feb-14 1:07
kskumaran10-Feb-14 1:07 
AnswerRe: word automatic rotation PinPopular
Chris Quinn9-Feb-14 23:28
Chris Quinn9-Feb-14 23:28 
GeneralRe: word automatic rotation Pin
Bernhard Hiller10-Feb-14 21:29
Bernhard Hiller10-Feb-14 21:29 
Questionsending sms Pin
sadish69-Feb-14 20:02
sadish69-Feb-14 20:02 
SuggestionRe: sending sms Pin
Richard MacCutchan9-Feb-14 22:38
mveRichard MacCutchan9-Feb-14 22:38 
Questioncode to generate text from the given string and how to detect "\" in the text as a text and not as a tag during parsing of rtf file Pin
aayush saraswat9-Feb-14 6:54
aayush saraswat9-Feb-14 6:54 
AnswerRe: code to generate text from the given string and how to detect "\" in the text as a text and not as a tag during parsing of rtf file Pin
Mycroft Holmes9-Feb-14 11:58
professionalMycroft Holmes9-Feb-14 11:58 
AnswerRe: code to generate text from the given string and how to detect "\" in the text as a text and not as a tag during parsing of rtf file Pin
BillWoodruff9-Feb-14 19:03
professionalBillWoodruff9-Feb-14 19:03 
AnswerRe: code to generate text from the given string and how to detect "\" in the text as a text and not as a tag during parsing of rtf file Pin
Richard Deeming10-Feb-14 1:41
mveRichard Deeming10-Feb-14 1:41 
QuestionDisable combo box on selecting an option. Pin
Mohan Subramani9-Feb-14 3:40
Mohan Subramani9-Feb-14 3:40 
AnswerRe: Disable combo box on selecting an option. Pin
OriginalGriff9-Feb-14 3:47
mveOriginalGriff9-Feb-14 3:47 
AnswerRe: Disable combo box on selecting an option. Pin
BillWoodruff9-Feb-14 6:18
professionalBillWoodruff9-Feb-14 6:18 
Questionvideo and gps Pin
jas168-Feb-14 23:21
jas168-Feb-14 23:21 
AnswerRe: video and gps Pin
Ravi Bhavnani9-Feb-14 4:34
professionalRavi Bhavnani9-Feb-14 4:34 

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.