![]() |
Control Edit |
Post Reply
|
| Author | |
amstel
Newbie
Joined: 23 February 2004 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: Control EditPosted: 24 February 2004 at 6:17am |
|
I want to use a Control Edit, but how to obtain the content ?? I fix to 200 the width in Command Bars Designer, but at runtime the width stays in 100. Is it a bug? Thanks for help J-Marc from Paris |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2004 at 8:26am |
|
Add this to your code after you load your designer command bar, assume
that the ID of the edit control is called ID_FORMATTEXT_SAMPLE (the
name given in the designer) and you named your Command Bars control on the form CommandBars.
Dim ControlEdit As ICommandBarEdit Set ControlEdit = CommandBars.FindControl(, ID_FORMATTEXT_SAMPLE) If Not ControlEdit Is Nothing Then ControlEdit.Width = 200 End If Hope this helps ![]() Edited by SuperMario |
|
![]() |
|
amstel
Newbie
Joined: 23 February 2004 Location: France Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2004 at 8:41am |
|
Thanks for your help !!!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2004 at 2:34pm |
|
Width is restored from registry, so Don't use LoadCommandBars call while your program in developping phase. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |