Print Page | Close Window

ShortcutCaption at runtime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3765
Printed Date: 10 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShortcutCaption at runtime
Posted By: Newm
Subject: ShortcutCaption at runtime
Date Posted: 13 March 2006 at 6:33am

Hi,

I am trying to create a ShortcutCaption at runtime in VB .NET 2005 and no matter what I try I cannot adjust the height or width of the control.

I have this on Load of my form and no matter what values I use for Height and Width the control appears the same size,

Dim scc As AxXtremeShortcutBar.AxShortcutCaption

scc = New AxXtremeShortcutBar.AxShortcutCaption

With scc

     .Top = 10

     .Left = 10

     .Height = 20

     .Width = 100

End With

Me.Controls.Add(scc)

Thanks




Replies:
Posted By: Newm
Date Posted: 13 March 2006 at 6:53am

not wanting to answer my own question  but...

it seems to work if you change the Height/Width after the control has been added into the container.  For example if I do the Me.Controls.Add(scc) before scc.Height = xxx then it works.

Is there any way around this?




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