Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,301 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 770 people online right now. Registration is fast and FREE... Join Now!




Needs Similar Coding for Treeview

 
Reply to this topicStart new topic

Needs Similar Coding for Treeview

bharanidharanit
26 Dec, 2008 - 06:43 PM
Post #1

New D.I.C Head
*

Joined: 26 Dec, 2008
Posts: 7

Hello sir,
I want similar coding for treeview, where for linklabel is as follows.
CODE

Private Sub LinkLabel8_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel8.LinkClicked
        WebBrowser1.Navigate(Application.StartupPath & "\source\test.html\")
    End Sub


User is offlineProfile CardPM
+Quote Post


Core
RE: Needs Similar Coding For Treeview
26 Dec, 2008 - 09:48 PM
Post #2

using DIC.Mod.Core;
Group Icon

Joined: 8 Dec, 2008
Posts: 1,780



Thanked: 139 times
Dream Kudos: 350
Expert In: Software Development, Software Testing/Debugging

My Contributions
The NodeMouseClick event handles the clicks on TreeView nodes:

CODE

Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
        WebBrowser1.Navigate(e.Node.Text)
End Sub

User is offlineProfile CardPM
+Quote Post

bharanidharanit
RE: Needs Similar Coding For Treeview
27 Dec, 2008 - 02:00 AM
Post #3

New D.I.C Head
*

Joined: 26 Dec, 2008
Posts: 7

QUOTE(Core @ 26 Dec, 2008 - 09:48 PM) *

The NodeMouseClick event handles the clicks on TreeView nodes:




Hello sir,
I changed the e.Node.Text to e.Node.Tag. and added this to tag property but not working.
CODE

Application.StartupPath & "\Source\Main.html\"


This post has been edited by bharanidharanit: 27 Dec, 2008 - 02:01 AM
User is offlineProfile CardPM
+Quote Post

Core
RE: Needs Similar Coding For Treeview
27 Dec, 2008 - 10:22 AM
Post #4

using DIC.Mod.Core;
Group Icon

Joined: 8 Dec, 2008
Posts: 1,780



Thanked: 139 times
Dream Kudos: 350
Expert In: Software Development, Software Testing/Debugging

My Contributions
Are you getting any errors or the page is not loading in the WebBrowser control?
User is offlineProfile CardPM
+Quote Post

bharanidharanit
RE: Needs Similar Coding For Treeview
27 Dec, 2008 - 06:23 PM
Post #5

New D.I.C Head
*

Joined: 26 Dec, 2008
Posts: 7

QUOTE(Core @ 27 Dec, 2008 - 10:22 AM) *

Are you getting any errors or the page is not loading in the WebBrowser control?

Actually that coding works with the form load event, but that does not with when i add tag like that

CODE

Private Sub Form_load~~~~
webbrowser1.navigate (Application.Startuppath & "\Source\main.html\")
End sub


This post has been edited by bharanidharanit: 27 Dec, 2008 - 06:32 PM
User is offlineProfile CardPM
+Quote Post

Core
RE: Needs Similar Coding For Treeview
27 Dec, 2008 - 07:15 PM
Post #6

using DIC.Mod.Core;
Group Icon

Joined: 8 Dec, 2008
Posts: 1,780



Thanked: 139 times
Dream Kudos: 350
Expert In: Software Development, Software Testing/Debugging

My Contributions
Please, post the full code you are using. In the code you showed there are no errors, so there should be another part that is either not written properly or is just doing the wrong action. Also, make sure your TreeNode has the tag property set up correctly.
User is offlineProfile CardPM
+Quote Post

bharanidharanit
RE: Needs Similar Coding For Treeview
28 Dec, 2008 - 02:59 AM
Post #7

New D.I.C Head
*

Joined: 26 Dec, 2008
Posts: 7

QUOTE(Core @ 27 Dec, 2008 - 07:15 PM) *

Please, post the full code you are using. In the code you showed there are no errors, so there should be another part that is either not written properly or is just doing the wrong action. Also, make sure your TreeNode has the tag property set up correctly.


I resolved it, thanks

i used this coding

CODE

WebBrowser1.Navigate(Application.StartupPath & "\Source\" & e.Node.Tag)

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 05:38PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month