Null argument exception with TabWorkspace in C# |
Post Reply |
Author | |
bjust
Groupie Joined: 22 December 2010 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 22 December 2010 at 4:59pm |
I am trying to use the CodeJock controls in a C# application. When I try to set the TabWorkspace.IgnoreFlickersOnActivate property, it crashes with a null argument exception. TabWorkspace is null. How can I create it? Also, in some cases the .Options property is null, but not in other cases. What's going on here?
|
|
Brian Justice
Senior Developer Corepoint Health. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Do you call CommandBars.SetMDIClient ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
bjust
Groupie Joined: 22 December 2010 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Calling SetMDIClient fixed the problem where the .TabWorkspace property was null on the MDI container. However, I still have the problem on the MDI child windows where the .Options property - and others - are null. Calling SetMDIClient didn't help.
|
|
Brian Justice
Senior Developer Corepoint Health. |
|
bjust
Groupie Joined: 22 December 2010 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I figured out what the problem was. I read some other forum articles and discovered that I need to initialize the control after setting the MDIParent property, not before. It works now.
|
|
Brian Justice
Senior Developer Corepoint Health. |
|
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 |