Print Page | Close Window

Replace Control

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=24173
Printed Date: 08 May 2024 at 8:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Replace Control
Posted By: VDF2
Subject: Replace Control
Date Posted: 01 July 2021 at 11:33am
Does anyone know whether it is possible to change the control type of a commandbar control? So I have a control of the type xtpControlComboBox and I want to change this to xtpControlEdit. 

So far all I could do is create both controls and toggle the visibility of the control. I would like to change the Type property of the control.

I looked whether I could remove the control from the controls collection but I could not find a method for that either.



Replies:
Posted By: jpbro
Date Posted: 05 July 2021 at 9:00pm
The CommandBarControl object has a .Delete method that you can call to delete the unwanted control.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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