Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem about Properties Pin
Martin#1-Aug-07 2:58
Martin#1-Aug-07 2:58 
AnswerRe: Problem about Properties Pin
Luc Pattyn1-Aug-07 2:37
sitebuilderLuc Pattyn1-Aug-07 2:37 
GeneralRe: Problem about Properties Pin
kcynic1-Aug-07 2:46
kcynic1-Aug-07 2:46 
GeneralRe: Problem about Properties Pin
Luc Pattyn1-Aug-07 2:59
sitebuilderLuc Pattyn1-Aug-07 2:59 
GeneralRe: Problem about Properties Pin
Malcolm Smart1-Aug-07 2:59
Malcolm Smart1-Aug-07 2:59 
GeneralRe: Problem about Properties Pin
Luc Pattyn1-Aug-07 3:42
sitebuilderLuc Pattyn1-Aug-07 3:42 
GeneralRe: Problem about Properties Pin
Malcolm Smart1-Aug-07 4:53
Malcolm Smart1-Aug-07 4:53 
AnswerRe: Problem about Properties Pin
Scott Dorman1-Aug-07 13:38
professionalScott Dorman1-Aug-07 13:38 
What no one has pointed out is that it really isn't good practice to have properties that depend on the internal state of another property specifically for the reason that you can't control the order they will be set by the end user.

For what you are trying to do, using a method that takes 2 parameters would be better. Inside the method, you can set the internal variables in the correct order and then perform your calculations. If you still need access to the parameter values after the function exits, change the properties to read-only.

-----------------------------
In just two days, tomorrow will be yesterday.

http://geekswithblogs.net/sdorman

GeneralRe: Problem about Properties Pin
kcynic2-Aug-07 18:27
kcynic2-Aug-07 18:27 
QuestionCall To SNMP Device Pin
kaushal6541-Aug-07 1:24
kaushal6541-Aug-07 1:24 
QuestionProblem printing images on Zebra Printer Pin
Sharath Madhuranath1-Aug-07 1:22
Sharath Madhuranath1-Aug-07 1:22 
AnswerRe: Problem printing images on Zebra Printer Pin
kubben1-Aug-07 2:01
kubben1-Aug-07 2:01 
QuestionHow to optimize remove unused entries in resx ? Pin
stancrm1-Aug-07 1:20
stancrm1-Aug-07 1:20 
Questionrun application ? Pin
abcomp011-Aug-07 0:55
abcomp011-Aug-07 0:55 
AnswerRe: run application ? Pin
kubben1-Aug-07 2:02
kubben1-Aug-07 2:02 
QuestionAdding TLB to - Debug\Interop ? ? Pin
Yanshof1-Aug-07 0:51
Yanshof1-Aug-07 0:51 
QuestionRe:Disabling maximising form by doubleclicking on winform header Pin
kyreddy1-Aug-07 0:36
kyreddy1-Aug-07 0:36 
AnswerRe:Disabling maximising form by doubleclicking on winform header [modified] Pin
Martin#1-Aug-07 0:58
Martin#1-Aug-07 0:58 
GeneralRe:Disabling maximising form by doubleclicking on winform header Pin
kyreddy1-Aug-07 2:26
kyreddy1-Aug-07 2:26 
GeneralRe:Disabling maximising form by doubleclicking on winform header Pin
Martin#1-Aug-07 2:27
Martin#1-Aug-07 2:27 
AnswerRe:Disabling maximising form by doubleclicking on winform header Pin
MSilviu1-Aug-07 2:37
MSilviu1-Aug-07 2:37 
QuestionTreeView expand Pin
collapo1-Aug-07 0:22
collapo1-Aug-07 0:22 
AnswerRe: TreeView expand Pin
Robert Rohde1-Aug-07 0:48
Robert Rohde1-Aug-07 0:48 
GeneralRe: TreeView expand Pin
collapo1-Aug-07 1:16
collapo1-Aug-07 1:16 
QuestionConnectionString Pin
M Riaz Bashir1-Aug-07 0:05
M Riaz Bashir1-Aug-07 0:05 

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.