Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - URGENT: Treeview nodes in shortcutbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

URGENT: Treeview nodes in shortcutbar

 Post Reply Post Reply
Author
Message
TThorne View Drop Down
Newbie
Newbie


Joined: 14 March 2006
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote TThorne Quote  Post ReplyReply Direct Link To This Post Topic: URGENT: Treeview nodes in shortcutbar
    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)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.154 seconds.