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

  • Home
  • SEARCH
  • 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 8603617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:21:58+00:00 2026-06-12T02:21:58+00:00

I am looking to create the data for a treeview in a dll. I

  • 0

I am looking to create the data for a treeview in a dll. I then what to use that data to form a treeview in a UI.

However I cannot figure out how to store this information in a variable i.e. string int double obivously it is neither of these but I can’t see how I could use a array or hash table to do this either.

Basically I do not know of any data type capable of storing the data to use for a TreeView and was wondering if someone could let me know. If it helps I’m using C#

What do I use as the return variable?

public static SomeVariable treedata()
{
}
  • 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. Editorial Team
    Editorial Team
    2026-06-12T02:22:00+00:00Added an answer on June 12, 2026 at 2:22 am

    You can use a treeview control itself to store all the data … There are a couple of ways of storing the data, but I would create an object of type “TreeView” itself … Once created, you can access the nodes of the object and get the data that you are looking for (See example below in VB)

    Dim treeview As New TreeView
    treeview.Nodes(0).Text = "Parent Node"
    treeview.Nodes(0).Nodes.Add("Child Node")
    Dim tempstring As String = treeview.SelectedNode.Text
    

    If you want to do something else with the data (Like store it in as an object, process it later,etc. you can also save it to a text file and read that file later). It will depend on whether you need to store the data or not. You can store the values in a hash table as well. In order to do that, you will need to iterate through all the nodes using multiple for loops and within those loops, iterate through the columns of a hashtable while inserting values along with the node name and its parent node into the table field. If you are new to treeview, i suggest you read up on some of it … It is not very difficult once you get how it works … (That is, if you are indeed new to it)

    Some links below to these:
    Saving content of a treeview to a file and load it later

    Accessing all the nodes in TreeView Control

    tree view bindings to a data table

    Regards,
    Sunny

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

Sidebar

Related Questions

I am looking to create a QTcpServer using PyQt that can simultaneously return data
I'm looking to create a view of a table which will highlight data that
I'm looking to create a cocoa program that simply sends data typed into text
I'm looking to create a modal popup that only pulls the data inside the
I am looking to create something that looks like this. Supervisor name Employee name
I'm looking to create a form that uses radio buttons but as soon as
I'm looking for a way to create a data access layer that can either
I am looking to create a Facebook App and the data I want to
I'm looking at some code that creates a mutable data object and puts a
I looking to create a custom calender with Zend Framework, I am hoping that

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.