Translate Object Explorer

Posted on 2009-04-19
Last Modified: 2012-05-06
When within Object Explorer I find this due to the fact I am trying to get the UserID, how can I use this logic to display the value of this in something as simple as a Textbox?  I have already referenced the member.

        Public ReadOnly Property UserId() As Integer
         Member of mojoPortal.Business.SiteUser

Sorry, I just not familier with what this is asking or telling me.

Question by:chrisryhal
    LVL 39

    Accepted Solution

    Apparently, from what this says, it is part of the MojoPortal assembly. Once you have referenced it, you can place an import statement on top of your class (on top of your from.cs code, for instance):

    Imports mojoPortal.Business.SiteUser
    Then, for instance in the Form_Load event, you can do something like this:

    ' create a new site user, or get it from somewhere
    Dim mySiteUser As New SiteUser

    ' do some things with object mySiteUser, like getting the user id:
    TextBox1.Text = mySiteUser.UserId.ToString()

    LVL 2

    Author Closing Comment

    LVL 39

    Expert Comment

    >> Awesome!!!

    glad it worked out!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now