C# objects

Discussion in 'C#' started by AxeSlash, Aug 28, 2010.

  1. AxeSlash

    AxeSlash New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Ok, so I'm VERY new to C# (and to this forum). I do know VB though.

    I'm trying to figure out how to create an object variable and assign an object to it, so in VB it would be like

    Set myObjVariable = myObj

    The context is that I have two labels, and one chunk of code, so instead of duplicating the code for each label, I just wanna be able to run the chunk of code and affect whichever label I want to at the time.

    Can anyone point me in the right direction?


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice