Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Context Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Context Menu

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


Joined: 05 June 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote nofalter Quote  Post ReplyReply Direct Link To This Post Topic: Context Menu
    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!
Back to Top
nofalter View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote nofalter Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.047 seconds.