Print Page | Close Window

Using vbNullString with controls and command bars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=20297
Printed Date: 27 November 2024 at 11:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using vbNullString with controls and command bars
Posted By: DMoreland
Subject: Using vbNullString with controls and command bars
Date Posted: 13 November 2012 at 7:00am
I have found an issue when using the command bars and combo boxes in the latest version of the code jock controls. 

If you add an item to a combo box with a value of vbnullstring you get the following error message 

Automation Error, The object invoked has disconnected from its clients error

If you use "" instead of vbNullString then the error doesn't present its self. 

This also happens when you Add an item to a command bar with vbNullString as its name. and the same fix works where you can replace vbNullString with "". 

I have attached a code example illustrating this issue. The code needs to be compiled in order for the error to be displayed and it also has to be ran on a computer that hasn't had codejock installed. Running the example from the vb6 IDE will not display this behaviour and running it on a development machine with CodeJock installed on will not display this behaviour either. 

http://forum.codejock.com/uploads/7709/vb6projectProject1.zip - uploads/7709/vb6projectProject1.zip



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