Print Page | Close Window

[SOLVED] Refresh after RemoveAllItems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=15176
Printed Date: 16 May 2024 at 12:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Refresh after RemoveAllItems
Posted By: iamgtd
Subject: [SOLVED] Refresh after RemoveAllItems
Date Posted: 15 September 2009 at 9:38am
In the case that all items in the ShortcutBar are removed, the client pane area shows always the associated form of the last shown item. How can I clear the client pane area? The Refresh method effects nothing.
 

wndShortcutBar.RemoveAllItems();

wndShortcutBar.Refresh();

 


-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



Replies:
Posted By: iamgtd
Date Posted: 16 September 2009 at 1:54am
I found a solution:
 
ShortcutBarItem item = cjShortcutBar.FindItem(id);
item.hWnd = 0;
cjShortcutBar.RemoveItem(id);


-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



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