Print Page | Close Window

[OPEN] Error with Form.ShowInTaskbar = true

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=15910
Printed Date: 19 May 2024 at 12:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [OPEN] Error with Form.ShowInTaskbar = true
Posted By: iamgtd
Subject: [OPEN] Error with Form.ShowInTaskbar = true
Date Posted: 22 December 2009 at 6:16am

If in the void Form_load of a form the property this.ShowInTaskbar = false is used, then in the following settings of the commandbar occurs an error (System.NullReferenceException was unhandled).
If this setting is done in the IDE no error occurs.

It is easily to reproduce this error in the CodeJock sample RibbonSample.csproj.

  private void frmMain_Load(object eventSender, System.EventArgs eventArgs)
  {
            this.ShowInTaskbar = false; // !!! insert this code !!!

   LoadIcons(); // here occurs the error
   CreateRibbonBar();


 



-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



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