473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What could cause this?

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


Nov 20 '05 #1
2 1051
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
|
|
|
|
|

Nov 20 '05 #2
Thanks for the suggestion,
Cal

""Steven Stein [MSFT]"" <ss****@online.microsoft.com> wrote in message
news:es**************@cpmsftngxa07.phx.gbl...
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
|
|
|
|
|

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Liza | last post by:
Hi guys, can anyone explain line number 5 to me. i don't quite understand what is going on there and why. 1 <script language="vbscript" runat="server">sub Application_OnStart 2 getcustomers...
0
by: Bill | last post by:
All I want to do is find a way to cause a vb.net / asp.net program to exceed the httpRuntime executionTimeout="xxx" value to thrown the exception, so I can do some testing. I've tried setting this...
2
by: evangeline | last post by:
We have ASP application running on IIS 5.1 and Windows 2000 server. The ASP application has few Application variables setup in global.asa. Something like this: Application.Lock()...
43
by: Mountain Bikn' Guy | last post by:
I have a situation where an app writes data of various types (primitives and objects) into a single dimensional array of objects. (This array eventually becomes a row in a data table, but that's...
1
by: Brian Maguire | last post by:
Background Info: I have a table with a approx 2.5 million rows. The table often gets 200-300 inserts per second. We are see that the database (7.4.1 Red Hat Enterprise ED 4 way Xeon) will...
7
by: rob c | last post by:
Hi Does anyone know what triggers a "popup blocker"? I'm going to be opening some sub-windows from my main page and don't want to get caught in a blocker. Thanks Rob
7
by: Amanda | last post by:
User is going to be transferring items out of combobox to listbox and vice versa keeping ascending and desending order respectively at all time. If user selects the last item in combobox, the...
1
by: Brian Simmons | last post by:
Hi All, I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out any sessions, etc...). Are there...
7
by: rsk | last post by:
char *i_reg_fname = "none"; -- Message posted using http://www.talkaboutprogramming.com/group/comp.lang.c/ More information at http://www.talkaboutprogramming.com/faq.html
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.