Print Page | Close Window

URGENT: Treeview nodes in shortcutbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3775
Printed Date: 17 November 2024 at 9:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: URGENT: Treeview nodes in shortcutbar
Posted By: TThorne
Subject: URGENT: Treeview nodes in shortcutbar
Date Posted: 14 March 2006 at 2:43pm

Using VB6 i created an app which uses a shortcutbar for a menu and a pane containing a treeview. Upgraded to Visual Studio 2005 and the treeview click is no longer working.

on the load event, the following is run.

tvwMenuItems.Nodes.Add("ID:" & CStr(FORMINDEX_COMM), "Communications", 0)

and the following is activated on the treeview click event:

Private Sub tvwMenuItems_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles tvwMenuItems.Click

Dim selectedItem As XtremeShortcutBar.ShortcutBarItem

selectedItem = frmSDIInterface.wndWindowView.FindItem(CInt(Mid(eventSender.SelectedNode.Name, InStr(eventSender.SelectedNode.Name, ":") + 1)))

frmSDIInterface.wndWindowView.Selected = selectedItem

End Sub

 

However, although it worked in the VB app, it no fails on the FindItem line.

 

Any help is appreciated.

 

Tony (Inpressmedia)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net