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

C#

 
GeneralRe: Datagrids - Selecting Rows Pin
MrEyes5-Aug-03 0:42
MrEyes5-Aug-03 0:42 
GeneralRe: Datagrids - Selecting Rows Pin
Heath Stewart5-Aug-03 5:34
protectorHeath Stewart5-Aug-03 5:34 
Generalcom object, [out] params (pointers to values), C# Pin
alma4-Aug-03 1:55
alma4-Aug-03 1:55 
GeneralRe: com object, [out] params (pointers to values), C# Pin
Alexander Kojevnikov4-Aug-03 2:56
Alexander Kojevnikov4-Aug-03 2:56 
GeneralRe: com object, [out] params (pointers to values), C# Pin
alma4-Aug-03 3:17
alma4-Aug-03 3:17 
GeneralRe: com object, [out] params (pointers to values), C# Pin
Alexander Kojevnikov4-Aug-03 3:27
Alexander Kojevnikov4-Aug-03 3:27 
GeneralRe: com object, [out] params (pointers to values), C# Pin
alma4-Aug-03 3:56
alma4-Aug-03 3:56 
GeneralReferencing a reference Pin
Martin Cross3-Aug-03 23:22
Martin Cross3-Aug-03 23:22 
Yello, I'm suffering from user stupidity at the moment and am hoping someone here can show me the way.

I'm attempting to build a class that contains a collection. I have a method in the class called Bind(), which takes a textbox reference and an object reference as it's parameters. These two passed references are then stored into the collection.

Simple enough I thought, but the problem appears to be, that I cannot make a reference to a reference. The objects contained within the collection no longer reference the original objects. As as an example, I should be able to pull out one of the textboxes from the collection, change the .text property and see the textbox change on the form. Alas, this is not the case.

I have tried just assigning the references to two member variables within the class instead of a collection. Same problem, once the second assigment occurs, I get a copy of the textbox and object and not another reference.

Is there something blindingly simple that I'm missing here? Surely in .NET you can reference a reference? Or is there some default behaviour that I don't understand that forces an object to copy itself in this situation.

Thanks.
Martin

GeneralRe: Referencing a reference Pin
Furty4-Aug-03 0:46
Furty4-Aug-03 0:46 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 0:55
Martin Cross4-Aug-03 0:55 
GeneralRe: Referencing a reference Pin
Furty4-Aug-03 9:16
Furty4-Aug-03 9:16 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 22:13
Martin Cross4-Aug-03 22:13 
GeneralRe: Referencing a reference Pin
Furty5-Aug-03 1:02
Furty5-Aug-03 1:02 
GeneralRe: Referencing a reference Pin
Martin Cross5-Aug-03 3:07
Martin Cross5-Aug-03 3:07 
GeneralRe: Referencing a reference Pin
Furty5-Aug-03 14:10
Furty5-Aug-03 14:10 
GeneralRe: Referencing a reference Pin
Heath Stewart4-Aug-03 6:11
protectorHeath Stewart4-Aug-03 6:11 
GeneralRe: Referencing a reference Pin
Martin Cross4-Aug-03 6:24
Martin Cross4-Aug-03 6:24 
GeneralRe: Referencing a reference Pin
Heath Stewart4-Aug-03 6:34
protectorHeath Stewart4-Aug-03 6:34 
QuestionHow to get system-wide cursor status in c#? Pin
CyberKewl3-Aug-03 22:02
CyberKewl3-Aug-03 22:02 
AnswerRe: How to get system-wide cursor status in c#? Pin
J. Dunlap3-Aug-03 22:34
J. Dunlap3-Aug-03 22:34 
GeneralRe: How to get system-wide cursor status in c#? Pin
CyberKewl4-Aug-03 4:25
CyberKewl4-Aug-03 4:25 
GeneralAbout some syntax Pin
FlyingDancer3-Aug-03 21:40
FlyingDancer3-Aug-03 21:40 
GeneralRe: About some syntax Pin
Alexander Kojevnikov3-Aug-03 22:41
Alexander Kojevnikov3-Aug-03 22:41 
GeneralRe: About some syntax Pin
FlyingDancer3-Aug-03 23:03
FlyingDancer3-Aug-03 23:03 
GeneralRe: About some syntax Pin
Alexander Kojevnikov4-Aug-03 2:42
Alexander Kojevnikov4-Aug-03 2:42 

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.