C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how can i access a sturct variable or class object from another from Posted by Binishkaspar on 15 Mar 2005 at 1:51 AM
in VC#,
how can i access a sturct variable
or class object from another from.
and
how can i pass the parameters to another
form?
Report
Re: how can i access a sturct variable or class object from another fr Posted by IDK on 23 Mar 2005 at 1:00 PM
: in VC#,
: how can i access a sturct variable
: or class object from another from.
: and
: how can i pass the parameters to another
: form?
:
The first Q is easy to answear. If the variabels are
public just use a dot to separate the class and the
variable. e.g.
myClass1.myVariable

The second Q is easy to if you just want to send the
parameters on. I think you havet to do youre own
function for it to work though

Hope this helped you


El PROgrammador Niklas Ulvinge
(who doesn't know how to spell in inglish)

Report
Re: how can i access a sturct variable or class object from another fr Posted by non-monotonic on 13 Apr 2005 at 7:53 AM
: : in VC#,
: : how can i access a sturct variable
: : or class object from another from.
: : and
: : how can i pass the parameters to another
: : form?
: :
: The first Q is easy to answear. If the variabels are
: public just use a dot to separate the class and the
: variable. e.g.
: myClass1.myVariable
:
: The second Q is easy to if you just want to send the
: parameters on. I think you havet to do youre own
: function for it to work though
:
: Hope this helped you
:

: El PROgrammador Niklas Ulvinge
: (who doesn't know how to spell in inglish)
:
:


Answering your first question, I think you should make the Class/Struct a static object then the calling class will be able to access this object if the requesting object doesnt have an instance of the containing class.
A slave to the code




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.