Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Macros and Clipboard Pin
srikrupha19-Apr-09 0:34
srikrupha19-Apr-09 0:34 
GeneralRe: Macros and Clipboard Pin
Eddy Vluggen19-Apr-09 0:47
professionalEddy Vluggen19-Apr-09 0:47 
QuestionThe 'MySQLProv' provider is not registered on the local machine. Pin
khosnur18-Apr-09 20:38
khosnur18-Apr-09 20:38 
AnswerRe: The 'MySQLProv' provider is not registered on the local machine. Pin
Eddy Vluggen18-Apr-09 23:08
professionalEddy Vluggen18-Apr-09 23:08 
QuestionTranselating an application?? Pin
Muammar©18-Apr-09 20:21
Muammar©18-Apr-09 20:21 
AnswerRe: Transelating an application?? Pin
Mycroft Holmes18-Apr-09 22:11
professionalMycroft Holmes18-Apr-09 22:11 
GeneralRe: Transelating an application?? Pin
Muammar©19-Apr-09 0:41
Muammar©19-Apr-09 0:41 
GeneralRe: Transelating an application?? Pin
Mycroft Holmes19-Apr-09 1:34
professionalMycroft Holmes19-Apr-09 1:34 
QuestionClickOnce Pin
Chapooki18-Apr-09 19:59
Chapooki18-Apr-09 19:59 
AnswerRe: ClickOnce Pin
Mycroft Holmes18-Apr-09 22:06
professionalMycroft Holmes18-Apr-09 22:06 
QuestionThe server committed a protocol violation. Pin
Kevin Mark18-Apr-09 15:25
Kevin Mark18-Apr-09 15:25 
AnswerRe: The server committed a protocol violation. Pin
Henry Minute19-Apr-09 0:18
Henry Minute19-Apr-09 0:18 
QuestionRe: The server committed a protocol violation. Pin
Kevin Mark19-Apr-09 9:18
Kevin Mark19-Apr-09 9:18 
AnswerRe: The server committed a protocol violation. Pin
Henry Minute19-Apr-09 12:51
Henry Minute19-Apr-09 12:51 
GeneralRe: The server committed a protocol violation. Pin
Kevin Mark19-Apr-09 14:49
Kevin Mark19-Apr-09 14:49 
Questionneed help with this error Pin
john231318-Apr-09 12:10
john231318-Apr-09 12:10 
AnswerRe: need help with this error Pin
Colin Angus Mackay18-Apr-09 13:34
Colin Angus Mackay18-Apr-09 13:34 
QuestionNew to C#, please explain how this works... Pin
Vengeful Emus18-Apr-09 11:14
Vengeful Emus18-Apr-09 11:14 
AnswerRe: New to C#, please explain how this works... Pin
Ravi Bhavnani18-Apr-09 12:06
professionalRavi Bhavnani18-Apr-09 12:06 
AnswerRe: New to C#, please explain how this works... Pin
Jimmanuel18-Apr-09 12:11
Jimmanuel18-Apr-09 12:11 
QuestionRe: New to C#, please explain how this works... Pin
Vengeful Emus18-Apr-09 12:41
Vengeful Emus18-Apr-09 12:41 
AnswerRe: New to C#, please explain how this works... Pin
Jimmanuel18-Apr-09 13:10
Jimmanuel18-Apr-09 13:10 
AnswerRe: New to C#, please explain how this works... Pin
Naruki19-Apr-09 15:49
Naruki19-Apr-09 15:49 
"Form1" is the class name. "this" refers to a specific instance of that class, an actual object.

You must use the class name when referring to static variables of that form, and you must (or can) use the instance reference when referring to instance variables.

Trying to precede the class name with the instance reference (this.Form1) is not really meaningful, and more than a bit confusing.


The "this" keyword is optional mainly because people get tired of typing it, I think. But there are cases where it must be used. When you have a class-scope variable and a method local variable with the same name, the "this" keyword specifies the class-scope variable. Otherwise, the local-scope variable is used.

Codemonkeys don't do it at all. Too busy coding.

QuestionCreate multiple derived instance in property grid for a property Pin
robert aaza18-Apr-09 6:50
robert aaza18-Apr-09 6:50 
Questiondialpad Pin
Roland Szigeti18-Apr-09 6:25
Roland Szigeti18-Apr-09 6:25 

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.