Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to access Remote Desktop in C# Pin
Abhijit Jana25-Oct-07 20:22
professionalAbhijit Jana25-Oct-07 20:22 
QuestionRe: How to access Remote Desktop in C# Pin
spiritboy25-Dec-08 2:22
spiritboy25-Dec-08 2:22 
AnswerRe: How to access Remote Desktop in C# Pin
majongan22-Oct-09 22:56
majongan22-Oct-09 22:56 
AnswerRe: How to access Remote Desktop in C# Pin
majongan22-Oct-09 22:58
majongan22-Oct-09 22:58 
QuestionAlternative to listbox/listview Pin
QzRz25-Oct-07 15:09
QzRz25-Oct-07 15:09 
AnswerRe: Alternative to listbox/listview Pin
Luc Pattyn25-Oct-07 16:13
sitebuilderLuc Pattyn25-Oct-07 16:13 
GeneralRe: Alternative to listbox/listview Pin
QzRz26-Oct-07 2:14
QzRz26-Oct-07 2:14 
QuestionObject Reference Required (CS0120) Form Access Pin
codemunkeh25-Oct-07 12:35
codemunkeh25-Oct-07 12:35 
OK, so I've recently picked up C#. Actually, I knew Jack about it until I dumped some VB code into it, ran some regexs, cleaned up the errors and have finally whittled it down to a total of 16 errors.
I fixed 12 of the "Object reference is required for the nonstatic field, method or property [blah]" but there's 4 left.
In VB it works great with: frmMain.pnlDisplay.Invalidate()
but to fix the CS0120, MSDN basically recommends replacing it with "new frmMain()".
Yeah, great, what that does is creates an infinite loop of new forms being created within one another. It hasn't overloaded any stacks yet but I do have heaps (bad pun) of memory.

Basically I'd like to know how I can access a control on a form from within another class, without having to create new instances and preferably without having to pass references to "this" around everywhere. Or can I get away with in the constructor only?


Ninja (the Nerd)

Confused? You will be...

AnswerRe: Object Reference Required (CS0120) Form Access Pin
Anthony Mushrow25-Oct-07 13:04
professionalAnthony Mushrow25-Oct-07 13:04 
GeneralRe: Object Reference Required (CS0120) Form Access Pin
codemunkeh25-Oct-07 13:07
codemunkeh25-Oct-07 13:07 
GeneralRe: Object Reference Required (CS0120) Form Access Pin
codemunkeh25-Oct-07 13:13
codemunkeh25-Oct-07 13:13 
GeneralRe: Object Reference Required (CS0120) Form Access Pin
Anthony Mushrow25-Oct-07 13:43
professionalAnthony Mushrow25-Oct-07 13:43 
QuestionBluetooth code sample C# or java Pin
Yustme25-Oct-07 12:29
Yustme25-Oct-07 12:29 
AnswerRe: Bluetooth code sample C# or java Pin
ekynox26-Oct-07 12:56
ekynox26-Oct-07 12:56 
QuestionHow can I make an equal between a String and a Table atribute? Pin
khalidelmeknesi25-Oct-07 10:46
khalidelmeknesi25-Oct-07 10:46 
AnswerRe: How can I make an equal between a String and a Table atribute? Pin
Christian Graus25-Oct-07 11:17
protectorChristian Graus25-Oct-07 11:17 
QuestionLog off windows screen Pin
clint198225-Oct-07 10:12
clint198225-Oct-07 10:12 
Questionassign number to variable name Pin
conemajstor25-Oct-07 9:26
conemajstor25-Oct-07 9:26 
AnswerRe: assign number to variable name Pin
pmarfleet25-Oct-07 9:34
pmarfleet25-Oct-07 9:34 
GeneralRe: assign number to variable name Pin
conemajstor25-Oct-07 9:57
conemajstor25-Oct-07 9:57 
GeneralRe: assign number to variable name Pin
pmarfleet25-Oct-07 10:01
pmarfleet25-Oct-07 10:01 
GeneralRe: assign number to variable name Pin
conemajstor25-Oct-07 10:09
conemajstor25-Oct-07 10:09 
GeneralRe: assign number to variable name Pin
pmarfleet25-Oct-07 10:23
pmarfleet25-Oct-07 10:23 
GeneralRe: assign number to variable name Pin
Ravi Bhavnani25-Oct-07 13:53
professionalRavi Bhavnani25-Oct-07 13:53 
AnswerRe: assign number to variable name Pin
Guffa25-Oct-07 10:11
Guffa25-Oct-07 10:11 

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.