Print Page | Close Window

Context Menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4788
Printed Date: 20 June 2025 at 3:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context Menu
Posted By: nofalter
Subject: Context Menu
Date Posted: 13 August 2006 at 7:49pm
Hi,
 
Im using Xtreme SuitePro ActiveX 2006 Q3 on Vb.Net 2005.

My problem is when i call the context menu the popup menu show up but the next time i call the popup it will show nothing but a square.

Look at the attach picture.
 
first click
 
next click
 
 
My code:
 

With frmForm

If .CommandBars.DesignerControls Is Nothing Then Exit Sub

Dim Popup As XtremeCommandBars.CommandBar

Dim Control As XtremeCommandBars.CommandBarControl, ContextControl As XtremeCommandBars.CommandBarControl

BringToFront()

Control = .CommandBars.DesignerControls.Find(, 1032)

If Control Is Nothing Then Exit Sub

Popup = StartUp.frmServer.CommandBars.Add("Popup", XTPBarPosition.xtpBarPopup)

For Each ContextControl In Control.CommandBar.Controls

ContextControl.Copy(Popup)

Next

Popup.ShowPopup()

End With

 
 
What seems to be the problem??
 
 
Thanks!



Replies:
Posted By: nofalter
Date Posted: 18 August 2006 at 5:51am
No one can answer!! I think Visual Studio 2005 is not yet supported with this activex.. tsk tsk tsk!


Posted By: Oleg
Date Posted: 18 August 2006 at 9:59am
Hmm. Seems problem in Foreach for ActiveX control... may be .NET generate something wrong...
 
please replace foreach to
 

Dim i

For i = 1 To Control.CommandBar.Controls.Count

ContextControl = Control.CommandBar.Controls(i)

ContextControl.Copy(Popup)

Next

 

we will try to dig why it happens.

Thanks a lot.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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