Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 179529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:25:23+00:00 2026-05-11T14:25:23+00:00

What is the most similar thing in VB.NET to a pointer, meaning like C

  • 0

What is the most similar thing in VB.NET to a pointer, meaning like C pointers?

I have a TreeView within a class. I need to expose some specific nodes (or leaves) that can be modified by external objects.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:25:24+00:00Added an answer on May 11, 2026 at 2:25 pm

    Nathan W has already suggested the IntPtr structure which can represent a pointer or handle, however, whilst this structure is part and parcel of the .NET framework, .NET really doesn’t have pointers per-say, and certainly not like C pointers.

    This is primarily because the .NET Framework is a ‘managed’ platform and memory is managed, assigned, allocated and deallocated by the CLR without you, the developer, having to worry about it (i.e. no malloc commands!) It’s mostly because of this memory management that you don’t really have access to direct memory addresses.

    The closest thing within the .NET Framework that can be thought of as a ‘pointer’ (but really isn’t one) is the delegate. You can think of a delegate as a ‘function pointer’, however, it’s not really a pointer in the strictest sense. Delegates add type-safety to calling functions, allowing code that ‘invokes’ a delegate instance to ensure that it is calling the correct method with the correct parameters. This is unlike ‘traditional’ pointers as they are not type-safe, and merely reference a memory address.

    Delegates are everywhere in the .NET Framework, and whenever you use an event, or respond to an event, you’re using delegates.

    If you want to use C# rather than VB.NET, you can write code that is marked as ‘unsafe‘. This allows code within the unsafe block to run outside of the protection of the CLR. This, in turn, allows usage of ‘real’ pointers, just like C, however, they still do have some limitations (such as what can be at the memory address that is pointed to).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most of the ASP.NET MVC paging solutions I have found by googling look like
I have need to provide a way for users to edit tables in ASP.Net.
I'm using ASP.NET with C# 2.0. I have created some objects for a database
I have two very similar classes that do essentially the same thing. The only
Wondering what is the best or most popular database client tool. Similar to Microsoft's
I'm wanting to grab the 10 most ordered products. My tables look similar to
I realize that there are many similar questions, but most involve scaling down the
Coolite facilitates DialogBox, Window, form, etc. (i.e. most of the controls similar to Desktop
Most of us write conditionals like: if (resultIndex == 0) ...but occaisionally I come
Most databases support some form of insert into select... statement. insert into a select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.