Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Replace Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Replace Control

 Post Reply Post Reply
Author
Message Reverse Sort Order
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (1) Thanks(1)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: Replace Control
    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

Back to Top
VDF2 View Drop Down
Groupie
Groupie


Joined: 03 February 2014
Location: Hengelo
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote VDF2 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.152 seconds.