General information
Title:
Textbox loses its Anchor behavior upon Resize
Environment versions
Network:
Windows 2003 Server
Hi Experts,
I have a textbox class which I used as sort of a title holder to be dropped in a form. Its Anchor property is 10 (Resize Width). I put a method named Dock to make sure it is placed at the topmost part of the form. Dock method is called in its Init().
In my Dock method, I placed the Anchor setting to a variable, did the 'docking', then restored the Anchor value of this textbox.
The form's Init though resizes the form's width, which I expect the textbox to follow suit since its Anchor setting is 10. Lo and behold, it does not!
The weird thing is, if I drop this textbox class on a form that does not resize its width, it behaves well.
Thanks in advance for any help on this.
Dennis
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only