Click here to Skip to main content
15,923,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: XML web service Pin
eggie524-May-05 17:49
eggie524-May-05 17:49 
GeneralRe: XML web service Pin
Yulianto.24-May-05 17:52
Yulianto.24-May-05 17:52 
GeneralRe: XML web service Pin
eggie524-May-05 17:56
eggie524-May-05 17:56 
GeneralRe: XML web service Pin
Yulianto.24-May-05 18:01
Yulianto.24-May-05 18:01 
GeneralRe: XML web service Pin
eggie524-May-05 18:09
eggie524-May-05 18:09 
GeneralRe: XML web service Pin
Yulianto.24-May-05 18:14
Yulianto.24-May-05 18:14 
GeneralHelp with Get Set Method of property Pin
monica2k24-May-05 14:43
monica2k24-May-05 14:43 
GeneralRe: Help with Get Set Method of property Pin
Marc Clifton24-May-05 14:49
mvaMarc Clifton24-May-05 14:49 
monica2k wrote:
Is it good to put validation in the set method of property.

No. Validation should be a completely separate method. The property should simply return the field value or set it.

To do validation, take a look at the Validated and Validating events that are part of every control. These explain how the validation works with response to the control losing focus--meaning, a value has been entered and the user tabs off the control or selects a different control.

Of course, it's a flawed system. Selecting a menu item does not cause a control to lose focus.

Marc

My website

Latest Articles:
Undo/Redo Buffer
Memento Design Pattern
GeneralGetManifestResourceStream Pin
Marc Clifton24-May-05 11:23
mvaMarc Clifton24-May-05 11:23 
GeneralRe: GetManifestResourceStream Pin
mav.northwind24-May-05 20:10
mav.northwind24-May-05 20:10 
GeneralRe: GetManifestResourceStream Pin
Marc Clifton25-May-05 0:14
mvaMarc Clifton25-May-05 0:14 
GeneralProcessing strings in C# Pin
DEWright_CA24-May-05 11:04
DEWright_CA24-May-05 11:04 
GeneralRe: Processing strings in C# Pin
User 665824-May-05 11:10
User 665824-May-05 11:10 
GeneralRe: Processing strings in C# Pin
Anonymous24-May-05 11:15
Anonymous24-May-05 11:15 
GeneralRe: Processing strings in C# Pin
DEWright_CA24-May-05 11:27
DEWright_CA24-May-05 11:27 
GeneralRe: Processing strings in C# Pin
Christian Graus24-May-05 11:38
protectorChristian Graus24-May-05 11:38 
GeneralRe: Processing strings in C# Pin
DavidNohejl24-May-05 11:39
DavidNohejl24-May-05 11:39 
GeneralCapturing a Window Handle Pin
Anonymous24-May-05 10:27
Anonymous24-May-05 10:27 
GeneralRe: Capturing a Window Handle Pin
Dave Kreskowiak24-May-05 11:09
mveDave Kreskowiak24-May-05 11:09 
GeneralRe: Capturing a Window Handle Pin
Akrynite24-May-05 11:41
Akrynite24-May-05 11:41 
GeneralRe: Capturing a Window Handle Pin
User 665824-May-05 11:51
User 665824-May-05 11:51 
GeneralRe: Capturing a Window Handle Pin
Dave Kreskowiak24-May-05 14:38
mveDave Kreskowiak24-May-05 14:38 
GeneralRe: Capturing a Window Handle Pin
eggie524-May-05 12:37
eggie524-May-05 12:37 
GeneralArchitecture Issue Pin
parrot12324-May-05 9:30
parrot12324-May-05 9:30 
GeneralRe: Architecture Issue Pin
Marc Clifton24-May-05 11:59
mvaMarc Clifton24-May-05 11:59 

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.