Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how can i access a sturct variable or class object from another from

BinishkasparBinishkaspar Posts: 4Member
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?

Comments

  • IDKIDK Posts: 1,784Member
    : 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
    [hr]
    El PROgrammador Niklas Ulvinge
    (who doesn't know how to spell in inglish)

  • non-monotonicnon-monotonic Posts: 17Member
    : : 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
    : [hr]
    : 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

Sign In or Register to comment.