Information générale
Titre:
Textbox loses its Anchor behavior upon Resize
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement