Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to show massage before form is load Pin
Rutvik Dave17-Feb-09 8:26
professionalRutvik Dave17-Feb-09 8:26 
AnswerRe: how to show massage before form is load Pin
Tony Pottier17-Feb-09 4:32
Tony Pottier17-Feb-09 4:32 
GeneralRe: how to show massage before form is load Pin
E_Gold17-Feb-09 4:57
E_Gold17-Feb-09 4:57 
GeneralRe: how to show massage before form is load Pin
Tony Pottier17-Feb-09 6:40
Tony Pottier17-Feb-09 6:40 
AnswerRe: how to show massage before form is load Pin
Xmen Real 17-Feb-09 5:14
professional Xmen Real 17-Feb-09 5:14 
AnswerRe: how to show massage before form is load Pin
Rutvik Dave17-Feb-09 6:32
professionalRutvik Dave17-Feb-09 6:32 
QuestionProperty vs Public Variable Pin
Anurag Gandhi17-Feb-09 3:18
professionalAnurag Gandhi17-Feb-09 3:18 
AnswerRe: Property vs Public Variable Pin
Eddy Vluggen17-Feb-09 3:30
professionalEddy Vluggen17-Feb-09 3:30 
GeneralRe: Property vs Public Variable Pin
PIEBALDconsult17-Feb-09 5:30
mvePIEBALDconsult17-Feb-09 5:30 
GeneralRe: Property vs Public Variable Pin
Eddy Vluggen17-Feb-09 6:29
professionalEddy Vluggen17-Feb-09 6:29 
GeneralRe: Property vs Public Variable Pin
PIEBALDconsult17-Feb-09 6:36
mvePIEBALDconsult17-Feb-09 6:36 
AnswerRe: Property vs Public Variable Pin
EliottA17-Feb-09 3:39
EliottA17-Feb-09 3:39 
AnswerRe: Property vs Public Variable Pin
Pete O'Hanlon17-Feb-09 3:48
mvePete O'Hanlon17-Feb-09 3:48 
AnswerRe: Property vs Public Variable Pin
DaveyM6917-Feb-09 4:08
professionalDaveyM6917-Feb-09 4:08 
GeneralRe: Property vs Public Variable Pin
PIEBALDconsult17-Feb-09 5:31
mvePIEBALDconsult17-Feb-09 5:31 
AnswerProperties SUCK! Pin
Ennis Ray Lynch, Jr.17-Feb-09 4:44
Ennis Ray Lynch, Jr.17-Feb-09 4:44 
AnswerRe: Property vs Public Variable Pin
Xmen Real 17-Feb-09 5:17
professional Xmen Real 17-Feb-09 5:17 
AnswerRe: Property vs Public Variable Pin
cmk17-Feb-09 5:25
cmk17-Feb-09 5:25 
A better way:
public int UserID { get; set; }

Is it better ?
The only reason (i accept) for using properties over public variables is that changing from a variable to a property breaks your interface.
http://blogs.msdn.com/abhinaba/archive/2006/04/11/572694.aspx[^]

I generally use properties unless i know for sure that i will never ever want to add logic to get/set. As it's hard to see the future i generally try to err on the side of safety.

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

AnswerRe: Property vs Public Variable Pin
PIEBALDconsult17-Feb-09 5:42
mvePIEBALDconsult17-Feb-09 5:42 
AnswerRe: Property vs Public Variable Pin
_Maxxx_17-Feb-09 16:51
professional_Maxxx_17-Feb-09 16:51 
Question.net error in application Pin
ToddHileHoffer17-Feb-09 3:04
ToddHileHoffer17-Feb-09 3:04 
QuestionAccessing Website Content Pin
Rahul Babu17-Feb-09 2:21
Rahul Babu17-Feb-09 2:21 
AnswerRe: Accessing Website Content Pin
SeMartens17-Feb-09 2:23
SeMartens17-Feb-09 2:23 
AnswerRe: Accessing Website Content Pin
dan!sh 17-Feb-09 2:30
professional dan!sh 17-Feb-09 2:30 
AnswerRe: Accessing Website Content Pin
N a v a n e e t h17-Feb-09 2:36
N a v a n e e t h17-Feb-09 2:36 

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.