![]() |
Need Help to handling Custom Control |
Post Reply ![]() |
Author | |
RedPsyrus ![]() Groupie ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 38 |
![]() ![]() ![]() ![]() ![]() Posted: 11 May 2009 at 1:50pm |
Hi,
I have create a right click menu with a custom Control but I have a problem with it here is a sample code I use uploads/20090511_134850_VBHandleMenu.zip thanks ![]() |
|
I'm using visual studio 2008 pro and codejock 12.1.1
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Maybe you need to put DataGrid in PictureBox or Form and attach PictureBox.hwnd / Form.hwnd?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
RedPsyrus ![]() Groupie ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 38 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thanks to reply Aaron.. I do it with Conteneurs, form and usercontrol,, the same problem is there another way to bypass it thanks |
|
I'm using visual studio 2008 pro and codejock 12.1.1
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
The only thing I can offer is a working sample in VB code.
Dim Popup As CommandBar
Dim settingsProperties As CommandBarPopup Dim settingsPropertiesHandle As CommandBarControlCustom If Button = 2 Then Set Popup = CommandBars.Add("Popup", xtpBarPopup) With Popup.Controls Set settingsProperties = .Add(xtpControlButtonPopup, 1, "Settings") Set settingsPropertiesHandle = settingsProperties.CommandBar.Controls.Add(xtpControlCustom, 2, "Settings") settingsPropertiesHandle.Handle = picPropertyGridControl.hWnd End With Popup.ShowPopup End If Remark:
picPropertyGridControl = Picturebox (with PropertyGrid control on it)
This produces:
![]() Hope this helps you a little
![]() |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
RedPsyrus ![]() Groupie ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 38 |
![]() ![]() ![]() ![]() ![]() |
hi..
dont work with vb 9 Aaron thanks for the help |
|
I'm using visual studio 2008 pro and codejock 12.1.1
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |