Click here to Skip to main content
15,921,062 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: List Box / Combo Box Pin
Ajay.k_Singh31-Jul-08 4:37
Ajay.k_Singh31-Jul-08 4:37 
QuestionHow to find menu item visibility dynamically Pin
AR Reddy31-Jul-08 3:07
AR Reddy31-Jul-08 3:07 
AnswerRe: How to find menu item visibility dynamically Pin
Smithers-Jones31-Jul-08 3:32
Smithers-Jones31-Jul-08 3:32 
GeneralRe: How to find menu item visibility dynamically Pin
AR Reddy31-Jul-08 5:47
AR Reddy31-Jul-08 5:47 
GeneralRe: How to find menu item visibility dynamically Pin
AR Reddy1-Aug-08 0:41
AR Reddy1-Aug-08 0:41 
QuestionProperties verses Functions Pin
Steven J Jowett31-Jul-08 1:55
Steven J Jowett31-Jul-08 1:55 
AnswerRe: Properties verses Functions Pin
Gideon Engelberth31-Jul-08 3:42
Gideon Engelberth31-Jul-08 3:42 
GeneralRe: Properties verses Functions Pin
supercat931-Jul-08 12:14
supercat931-Jul-08 12:14 
A few more points to consider, IMHO:

-1- When an attribute is written, is the value likely to remain set indefinitely absent user intervention (things like controls may be changed by the user--that's their purpose).

-2- Will writing the attribute with the value it already contains have any effect (if so, use a method)

-3- Will writing this attribute have side-effects on other writable properties that are not subsets or supersets? There's nothing wrong with an object having properties for, e.g., X, Y, and position; changing position will update both X and Y; changing X or Y will update position. On the other hand, the 'length' property for a StringBuilder is ugly, since reducing the length has the side-effect of clearing some (or all) of the contents.

-4- Will reading this attribute have any side-effects other than possibly caching, or will it require access to a resource guarded by a mutex or synclock? If so, use a method.

-5- IMHO, some attributes should use a method for writing and a property for reading. For example, if I were designing the timer object, I would have included a TimeLeft property (read-only) and a SetTimeLeft method (possibly an AddTime method as well). The time remaining on a timer is apt to change as soon as it's written, so I don't like the idea of using a writable property for that; nonetheless, since the remaining time represents the object's logical state, a read property seems appropriate.
AnswerRe: Properties verses Functions Pin
Gregory Gadow31-Jul-08 7:17
Gregory Gadow31-Jul-08 7:17 
QuestionNeed extra properties for the tables and as well for columns in a typed dataset Pin
its-ravi-b4u30-Jul-08 23:16
its-ravi-b4u30-Jul-08 23:16 
AnswerRe: Need extra properties for the tables and as well for columns in a typed dataset Pin
Christian Graus31-Jul-08 0:19
protectorChristian Graus31-Jul-08 0:19 
GeneralRe: Need extra properties for the tables and as well for columns in a typed dataset Pin
its-ravi-b4u31-Jul-08 1:27
its-ravi-b4u31-Jul-08 1:27 
GeneralRe: Need extra properties for the tables and as well for columns in a typed dataset Pin
Paddy Boyd31-Jul-08 3:21
Paddy Boyd31-Jul-08 3:21 
GeneralRe: Need extra properties for the tables and as well for columns in a typed dataset Pin
its-ravi-b4u31-Jul-08 4:06
its-ravi-b4u31-Jul-08 4:06 
QuestionHow to extract records from data table object Pin
Rameez Raja30-Jul-08 22:57
Rameez Raja30-Jul-08 22:57 
AnswerRe: How to extract records from data table object Pin
Guffa30-Jul-08 23:57
Guffa30-Jul-08 23:57 
GeneralRe: How to extract records from data table object Pin
Rameez Raja31-Jul-08 0:26
Rameez Raja31-Jul-08 0:26 
GeneralRe: How to extract records from data table object Pin
Ashfield31-Jul-08 1:27
Ashfield31-Jul-08 1:27 
GeneralRe: How to extract records from data table object Pin
Jon_Boy31-Jul-08 1:52
Jon_Boy31-Jul-08 1:52 
AnswerRe: How to extract records from data table object Pin
Steven J Jowett31-Jul-08 1:48
Steven J Jowett31-Jul-08 1:48 
QuestionADODB connection Pin
tatchung30-Jul-08 22:40
tatchung30-Jul-08 22:40 
AnswerRe: ADODB connection Pin
ChandraRam30-Jul-08 23:27
ChandraRam30-Jul-08 23:27 
QuestionVB.Net Pin
K.Thota30-Jul-08 21:55
K.Thota30-Jul-08 21:55 
AnswerRe: VB.Net PinPopular
Christian Graus30-Jul-08 23:58
protectorChristian Graus30-Jul-08 23:58 
GeneralRe: VB.Net Pin
Jon_Boy31-Jul-08 1:56
Jon_Boy31-Jul-08 1:56 

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.