(VS2010) help??
#9

Umm, I don't know if this can be done. This is your part of code:
Quote:

Private Sub TreeView_AfterSelect(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView.AfterSelect
' TODO: Add code to change the listview contents based on the currently-selected node of the treeview
LoadListView()
End Sub

Make it to somehow get the title of the currently selected node. Then, make a couple of "if" statements. If the title matches the title under which something would be shown, show it, else hide it.


Basic example (I don't know if you can get the current's selected node title + may not work, it's hard to remember it from the head):
Quote:

if CurrentSelectedNode.Title = "TEXTEN CHAT" then
Button1.Show
else
Button2.Hide

Reply


Messages In This Thread
(VS2010) help?? - by jonnyboy - 21.01.2011, 19:49
Re: (VS2010) help?? - by Outcast - 22.01.2011, 00:17
Re: (VS2010) help?? - by jonnyboy - 22.01.2011, 10:37
Re: (VS2010) help?? - by jonnyboy - 22.01.2011, 10:39
Re: (VS2010) help?? - by Outcast - 22.01.2011, 10:52
Re: (VS2010) help?? - by jonnyboy - 22.01.2011, 11:07
Re: (VS2010) help?? - by Outcast - 22.01.2011, 12:18
Re: (VS2010) help?? - by jonnyboy - 22.01.2011, 15:48
Re: (VS2010) help?? - by Outcast - 22.01.2011, 15:56
Re: (VS2010) help?? - by jonnyboy - 22.01.2011, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)