Commndbar nullreferenceexception |
Post Reply |
Author | |
florentsegui
Newbie Joined: 28 December 2019 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 28 January 2020 at 3:21pm |
Hello,
I'm trying to use the commandbar control on a MDI Child in VB.NET. I've got two commandbar controls: - one on the MDI Container form - one on the MDI Child form On the parent, everything is OK. I can add commandbars, contextmenus... On the child, I've a null reference exception as soon as I try to add something... I'm using Codejock 19.1 and VS2017 (NET 4.7.2) If I do this: Dim test As TestForm test = New TestForm() test.MdiParent = Me test.AxCommandBars1.ContextMenus.Add(500, "test") I've a nullreferenceexception If I do this: Dim test As TestForm test = New TestForm() test.AxCommandBars1.ContextMenus.Add(500, "test") All is OK How can I use a commandbar on a MDI Child? Thanks
|
|
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 |