anchoring problem: controls move at different speeds during resize

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hi,

I've got a form with a label and a listbox below it. They are both anchored
to the bottom of the form. When the form is resized, the listbox stays
anchored to the bottom, but the label moves much more slowly so a widening
gap appears between the label and the listbox. The label is definitely
moving so it must still be anchored bottom. How can this be happening? I
am completely stumped.

TIA
Brian
 
Brian,

Make sure that the anchoring for both of the controls is identical. If
they still are paste code for your form into your reply so someone else can
test it and see if they get the same behavior. I tested breifly with a
simple winform and did not see the same behavior.

Thanks! Robert Gruen - http://blogs.msdn.com/robgruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
#From: "John Smith" <[email protected]>
#Newsgroups:
microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.frame
work.windowsforms.controls
#Subject: anchoring problem: controls move at different speeds during resize
#Lines: 13
#X-Priority: 3
#X-MSMail-Priority: Normal
#X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
#Message-ID: <Q6Xsc.3425$Ly.1179@attbi_s01>
#NNTP-Posting-Host: 12.216.63.238
#X-Complaints-To: (e-mail address removed)
#X-Trace: attbi_s01 1085554224 12.216.63.238 (Wed, 26 May 2004 06:50:24 GMT)
#NNTP-Posting-Date: Wed, 26 May 2004 06:50:24 GMT
#Organization: MediaCom High Speed Internet
#Date: Wed, 26 May 2004 06:50:24 GMT
#Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newsfeed.gamma.ru!Gamma.RU!border2.nntp.dca.gigan
ews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s01.POSTED!53ab27
50!not-for-mail
#Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.windowsforms.controls:16391
microsoft.public.dotnet.framework.windowsforms:68310
#X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
#
#Hi,
#
#I've got a form with a label and a listbox below it. They are both
anchored
#to the bottom of the form. When the form is resized, the listbox stays
#anchored to the bottom, but the label moves much more slowly so a widening
#gap appears between the label and the listbox. The label is definitely
#moving so it must still be anchored bottom. How can this be happening? I
#am completely stumped.
#
#TIA
#Brian
#
#
#
 
Back
Top