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