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 73379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:11:33+00:00 2026-05-10T20:11:33+00:00

My VB.Net Winforms app is a tool to allow hierarchical data to be edited

  • 0

My VB.Net Winforms app is a tool to allow hierarchical data to be edited in a tree, then stored in a database. I am using a treeview control.

Content is drag-dropped from other documents onto the treenodes, or the nodes can be edited directly.

if I edit the database field directly, and enter a bit of content (a thousand characters long or more!), the treeview will happily display it.. but, when I drag drop, the data is being truncated at 259 characters. If I edit directly, the maximum edit ‘window’ is also 259 characters.

259 seems like a really strange number to stop at, so I am wondering – where does this size come from, and can I change it programmatically?

  • 1 1 Answer
  • 1 View
  • 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-10T20:11:33+00:00Added an answer on May 10, 2026 at 8:11 pm

    I would recommend taking a different approach. You probably don’t want to show your users all 10000 or characters of a document anyway in their TreeNode, so create an custom data storage class with properties like Name and Content to store the document and it’s title. Add your content to the Content property and a title or something meaningful to the Name property then add the object to the Tag property of the TreeNode object.

    Dim mynode As New TreeNode Dim SomeBigCustomObject as New MyContentStorageObject(name,content) mynode.Text = SomeBigCustomObject.Name mynode.Tag = SomeBigCustomObject TreeView1.Nodes.Add(mynode) 

    You can then get the object back when a node is selected (using the AfterSelect event) like this:

    dim ContentStorageObject As MyContentStorageObject = CType(e.Node.Tag,   MyContentStorageObject) dim content as string = ContentStorageObject.Content 

    If you need to edit the text, I would then either pop up a editor dialog or send the data that is stored in Content to an textbox on your form for editing. Your users will probably appreciate not having to type it all in the treeview node editor.

    That’s a real quick and dirty explanation, but the essence is ‘use the .Tag property’. Good luck.

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

Sidebar

Ask A Question

Stats

  • Questions 204k
  • Answers 204k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To expand on what I wrote earlier, the solution I… May 12, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer I have problems with listview sincerely. I found a solution… May 12, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer Adding <%= token_tag %> just after the HTML form tag… May 12, 2026 at 8:44 pm

Related Questions

When I run my VB.NET Winforms app I do not want it to steal
I'm attempting to deploy a WinForms app in a Citrix environment. It's been working
I am working on a VB.NET WinForms app that was upgraded by Visual Studio
I've run into a very odd bug today. I have a button on a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.