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

C#

 
GeneralRe: Problem in Opening connection in SQL Server Pin
Marc Clifton18-May-05 5:51
mvaMarc Clifton18-May-05 5:51 
GeneralRe: Problem in Opening connection in SQL Server Pin
Tom Larsen18-May-05 10:49
Tom Larsen18-May-05 10:49 
GeneralC# equivelant of Eval() Pin
JMichael246818-May-05 4:55
JMichael246818-May-05 4:55 
GeneralRe: C# equivelant of Eval() Pin
Marc Clifton18-May-05 5:47
mvaMarc Clifton18-May-05 5:47 
GeneralProblem in Uploading Files Pin
Anand for every one18-May-05 4:54
Anand for every one18-May-05 4:54 
Questionwhat does the keyword "static" mean? Pin
Sasuko18-May-05 4:43
Sasuko18-May-05 4:43 
AnswerRe: what does the keyword "static" mean? Pin
Tom Larsen18-May-05 4:53
Tom Larsen18-May-05 4:53 
AnswerRe: what does the keyword "static" mean? Pin
Peter Vertes18-May-05 5:09
Peter Vertes18-May-05 5:09 
If you declare something static it means that you don't (as a matter of fact you can't) instantiate it before you use it. One of my favorite examples of the use of static is say you are writting a class that keeps track of how many instances of that particular object exists. Inside that class you declare a static variable that will have an initial value of zero. In the constructor of your object you increment that static variable by one and in the destructor you decrement that static variable by one to reflect the creation/destruction of your objects. Now, since it's a static variable you can't increment using the "this" keyword since that will refer to an instance variable. You need to use a the actual class name and then static variable to increment it to be like: MyClass.instance++ or MyClass.instance-- And since its a static variable that all of your classes "share" you could query that static variable from any of your instantiated objects because they will all have the same value.

Here's MSDN explanation of the keyword static: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfstaticpg.asp
GeneralRe: what does the keyword "static" mean? Pin
leppie18-May-05 9:34
leppie18-May-05 9:34 
Generalupdate particular attribute's value from xml file Pin
ksanju100018-May-05 4:23
ksanju100018-May-05 4:23 
QuestionArraylist bound to datagrid problem when arraylist is part of another class? Pin
spAAwn18-May-05 4:23
spAAwn18-May-05 4:23 
Generalreal challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:15
jinzhecheng18-May-05 4:15 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 4:21
mvaMarc Clifton18-May-05 4:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 4:41
jinzhecheng18-May-05 4:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Tom Larsen18-May-05 4:48
Tom Larsen18-May-05 4:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 5:04
jinzhecheng18-May-05 5:04 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 5:41
mvaMarc Clifton18-May-05 5:41 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
S. Senthil Kumar18-May-05 5:48
S. Senthil Kumar18-May-05 5:48 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
jinzhecheng18-May-05 6:21
jinzhecheng18-May-05 6:21 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
Marc Clifton18-May-05 6:53
mvaMarc Clifton18-May-05 6:53 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
18-May-05 6:59
suss18-May-05 6:59 
GeneralRe: real challenge! How to implicitly override a Win form method Pin
DavidNohejl18-May-05 6:55
DavidNohejl18-May-05 6:55 
Generaldeleting particular node element from xml file through LOOP Pin
ksanju100018-May-05 4:13
ksanju100018-May-05 4:13 
QuestionAVISaveOptions Invisible Font? Pin
Member 190300618-May-05 4:07
Member 190300618-May-05 4:07 
GeneralSelecting row Index of datagrid Pin
Ashishhere18-May-05 3:34
Ashishhere18-May-05 3: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.