Hello Cal -
You may want to check out the SizeMode property of the picturebox:
PictureBox.SizeMode Property
http://msdn.microsoft.com/library/en...windowsformspi
ctureboxclasssizemodetopic.asp
hope that helps
Steve Stein
VB Team
This posting is provided "AS IS" with no warranties and confers no rights.
--------------------
| From: " active" <ac****@REMOVEa-znet.com>
| Subject: What could cause this?
| Date: Wed, 7 Jan 2004 16:46:06 -0500
| Lines: 46
| 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: <Oq**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: AC8601AA.ipt.aol.com 172.134.1.170
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:170811
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Set(ByVal NewSize As Drawing.Size)
|
| Me.AutoScrollMinSize = NewSize
|
| picDisplay.Size = NewSize
|
| picMarquee.Size = NewSize
|
| AdjustBitmap()
|
| End Set
|
| I do a breakpoint stop at picMarquee.Size = NewSize
|
| and check the values of
|
| AutoScrollMinSize , NewSize and picDisplay.Size
|
| and find that
|
| AutoScrollMinSize = NewSize
|
| picDisplay.Size is NOT equal to NewSize
|
| picDisplay has dock=anchor=none
|
| and is not locked
|
|
|
| Any idea what could cause the value not to change?
|
| I've been playing with this awhile and tried different things but I can't
| get the picturebox to change size.
|
|
|
|
|
| Thanks for any ideas,
|
| Cal
|
|
|
|
|