Translate Object Explorer

Posted on 2009-04-19
Medium Priority
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
  • 2
LVL 39

Accepted Solution

abel earned 2000 total points
ID: 24180979
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()


Author Closing Comment

ID: 31572049
LVL 39

Expert Comment

ID: 24195710
>> Awesome!!!

glad it worked out!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Integration Management Part 2
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month17 days, left to enroll

864 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