Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Error while adding TreeNode in presenter.

Error while adding TreeNode in presenter.

Scheduled Pinned Locked Moved C#
architecturehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishna Aditya
    wrote on last edited by
    #1

    Hi All, I am creating a windows app, with   MVP architecture. In presenter, I am adding nodes to the treenode, so in doing so, I am initializing                         <pre>TreeNode MainNode = new TreeNode();                         MainNode.Name = strProjectFolderPath;                         MainNode.Text = strProjectFolderPath;                         _view.AddTreeNodes(MainNode); </pre> I see the error, when I put a watch on MainNode, FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException' Actually I am trying to add items to this main node, so that I get the treeview from the folder. Please help me in solving this Thanks Ramm

    L 1 Reply Last reply
    0
    • K Krishna Aditya

      Hi All, I am creating a windows app, with   MVP architecture. In presenter, I am adding nodes to the treenode, so in doing so, I am initializing                         <pre>TreeNode MainNode = new TreeNode();                         MainNode.Name = strProjectFolderPath;                         MainNode.Text = strProjectFolderPath;                         _view.AddTreeNodes(MainNode); </pre> I see the error, when I put a watch on MainNode, FullPath = 'MainNode.FullPath' threw an exception of type 'System.InvalidOperationException' Actually I am trying to add items to this main node, so that I get the treeview from the folder. Please help me in solving this Thanks Ramm

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, You probably need to act according to this article[^]. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups