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. How to open form on tree node click

How to open form on tree node click

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiodata-structurestutorial
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.
  • E Offline
    E Offline
    EEmaan
    wrote on last edited by
    #1

    Hi! i want to open different windows form on clicking differnt nodes. I am using node.tag property for giving url but in url i have to write like this: node.Tag="C:\\Documents and Settings\\MyDocuments\\Visual Studio Projects\\WindowsApplication1\\General.cs"; and then after that i double click the tree view for getting its after_select event and in that event i write System.Diagnostics.ProcessStartInfo iexploreStartInfo = new System.Diagnostics.ProcessStartInfo("iexplore.exe", e.Node.Tag.ToString()); System.Diagnostics.Process iexplore = System.Diagnostics.Process.Start(iexploreStartInfo); now when i click node the same page opens in the browser thats link is given in tag property but as i wrote general.cs in url the cs file opens. But i want to open that particular form and i m not getting how to do that. Can anybody help me in that problem. Thanx

    G 1 Reply Last reply
    0
    • E EEmaan

      Hi! i want to open different windows form on clicking differnt nodes. I am using node.tag property for giving url but in url i have to write like this: node.Tag="C:\\Documents and Settings\\MyDocuments\\Visual Studio Projects\\WindowsApplication1\\General.cs"; and then after that i double click the tree view for getting its after_select event and in that event i write System.Diagnostics.ProcessStartInfo iexploreStartInfo = new System.Diagnostics.ProcessStartInfo("iexplore.exe", e.Node.Tag.ToString()); System.Diagnostics.Process iexplore = System.Diagnostics.Process.Start(iexploreStartInfo); now when i click node the same page opens in the browser thats link is given in tag property but as i wrote general.cs in url the cs file opens. But i want to open that particular form and i m not getting how to do that. Can anybody help me in that problem. Thanx

      G Offline
      G Offline
      giddy_guitarist
      wrote on last edited by
      #2

      EEmaan wrote:

      now when i click node the same page opens in the browser thats link is given in tag property but as i wrote general.cs in url the cs file opens. But i want to open that particular form and i m not getting how to do that. Can anybody help me in that problem.

      I'm sorry , your not clear at all. By Form do you mean the Form code thats in the General.cs file!? :doh: thats a little odd, you would have to compile the .cs file and then run the .exe! But why would you want to do that!?? :confused: Gideon

      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