[Mono-list] Basic Glade# question
SigmaX
scottclansman@cwazy.co.uk
Thu, 27 Jan 2005 10:51:01 -0600
Jonas Geiregat wrote:
>On Wed, 26 Jan 2005 22:42:24 -0600, SigmaX <scottclansman@cwazy.co.uk> wrote:
>
>
>
>>Now my problem is even more basic. In risk of displaying my ignorance:
>>I have a string variable declared in class A. I want to write to that
>>variable from class B. How exactly do I go about doing so? I tried to
>>find the answer with google with no luck.
>>
>>
>
>Make an instance of class A in class B and call some method that does
>the job ...
>
>
Alright... I think I'm getting there. In Class A I made a method like so:
public void myMethod (a,b,c,d,e,f)
{
/*Code to transfer values of a, b, c, d, e, and f to the final variables*/
}
And in Class B I created an instance of class A like so:
private A MainClass;
Am I close? Or totally off my rocker? I have a "private B ClassB" in class A, and when I type "ClassB." the intellisense-like thing drops down with method names for class B, but I don't get the same from class B when trying to deal with Class A :-S.
If you managed to follow all of that, thanx. I don't feel like I should ask newbie C# questions here, but I haven't found anyplace more suited.
Thanx
SigmaX
--
Registered Linux Freak #: 366,862
"My ISP won't talk to me after lodging a support call for helping gettting ADSL hooked up to a WinXP install running under VMWare under Linux on my XBox."
'Anonymous Coward,' in a post on slashdot.org
"For the eyes of the Lord range throughout the earth to strengthen those whose hearts are fully commited to him."
2 Chronicles 16:9a