AnsweredAssumed Answered

vrf bios id

Question asked by VRFuser on Jan 7, 2008
Hello all,
 
I can't figure out how to control the size of a Statusbar control properly at runtime.  I can set the height of the control, but the width remains unchanged (when I read it back and visually) whether I set it using
 
Statusbar.width or
Statusbar.size   or
Statusbar.size.width
 
MSDN has this statement in the documentation:
 
Because the Size class is a value type (Structure in Visual Basic, struct in Visual C#), it is returned by value, meaning accessing the property returns a copy of the size of the control. So, adjusting the HYPERLINK "http://msdn2.microsoft.com/en-us/library/betxbs3a(VS.80).aspx"Width or HYPERLINK "http://msdn2.microsoft.com/en-us/library/tk7tftxw(VS.80).aspx"Height properties of the Size returned from this property will not affect the HYPERLINK "http://msdn2.microsoft.com/en-us/library/bk74axfh(VS.80).aspx"Width or HYPERLINK "http://msdn2.microsoft.com/en-us/library/k9w3e9xh(VS.80).aspx"Height of the control. To adjust the Width or Height of the control, you must set the control's Width or Height property, or set the Size property with a new Size.
 
 
Which is clear as mud to me (isn't that what I'm doing?).  Can anybody shed some light on this?
 
BTW, I have the same issue with the RichTextBox, though it actually returns the height and width as set, but the box hasn't changed it's size visually.
 
Thanks,
 
Best regards

Reiner Schlieker
Test Equipment Designer

Siemens AG
Automation and Drives, Siemens Milltronics Process Instruments Inc.
Tel.    : +1 (705) 740-7553
Fax    : +1 (705) 740-7692
mailto:reiner.schlieker@siemens.com
http://www.siemens.com/automationhttp://www.siemens.com/automation

Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme;
Managing Board: Peter Loescher, Chairman, President and Chief Executive Officer;
Heinrich Hiesinger, Joe Kaeser, Rudi Lamprecht, Eduardo Montes, Juergen Radomski,
Erich R. Reinhardt, Hermann Requardt, Uriel J. Sharef, Peter Y. Solmssen, Klaus Wucherer;
Registered offices: Berlin and Munich;
Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684;
WEEE-Reg.-No. DE 23691322




---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes