|
-
Sep 14th, 2001, 10:36 AM
#1
Thread Starter
Lively Member
strange display problem, plz help!
hi, i have made a program and have put a picture box on the form. I resize the form to fit around the picture (with a bitmap inside it already). But when i distribute the program, on win2000 the form isn't resized around the picture box like i did it. I tried to do it in the form_load bit and resize the form to fit around the picture box, but it still happens.
It works perfectly fine on winNT and win98 but for some reason win2000 it no work.
Any ideas?
-
Sep 14th, 2001, 12:04 PM
#2
-= B u g S l a y e r =-
Have u tested this on more than one win2k pc ?
-
Sep 17th, 2001, 01:09 AM
#3
Thread Starter
Lively Member
yup but still the same prob...
-
Sep 17th, 2001, 01:23 AM
#4
Fanatic Member
I just tried this on a 2K pc and it seemed to work fine.
How are you resizing the form and when, i.e. in what event?
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Sep 17th, 2001, 01:27 AM
#5
Fanatic Member
Sorry, I see it's in the load event. RTFP!
If you are reading the size from the picture rather than hard-coding it, I wonder if your code is executing before the picture has had time to load? Have you tried putting the same code on a command button as a test, and seeing if it works after the form is fully loaded?
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Sep 17th, 2001, 02:08 AM
#6
-= B u g S l a y e r =-
could u post the code that does not work as indended... maybe we (win2k users) can find out.
-
Oct 2nd, 2001, 11:29 PM
#7
Thread Starter
Lively Member
sorry i have been away
...
hmmm that could be true.. maybe the picture doesnt load before the resizing code... however.. i have hard coded it in as well (i mean just resize it under the IDE and complied it) and the same prob occurs....
the code for resizing
Me.Width = Picture1.Width + 45
Me.Height = Picture1.Height + 335
-
Oct 3rd, 2001, 04:36 AM
#8
Thread Starter
Lively Member
-
Oct 3rd, 2001, 04:48 AM
#9
-= B u g S l a y e r =-
you load a picture into picture box, then the picture box is automatically resised ?
then u do the resising of the form according to the pic size ?
have I understood correctly?
-
Oct 10th, 2001, 04:51 AM
#10
Thread Starter
Lively Member
yes... thats correct!
i have included the link to the program as well.. all win2k users.. plz test and see how it is (if it resizes properly)
www.geocities.com/mrkylehuynh/program.zip
-
Oct 10th, 2001, 04:55 AM
#11
-= B u g S l a y e r =-
it states "This page is not available. " ?
-
Oct 10th, 2001, 05:09 AM
#12
Thread Starter
Lively Member
-
Oct 10th, 2001, 05:11 AM
#13
-= B u g S l a y e r =-
sorry no luck 
We're sorry, but this page is currently unavailable for viewing.
If this site belongs to you, please read this help page for more information and assistance
For general questions see our main help area, or search for other member pages.
-
Oct 10th, 2001, 05:27 AM
#14
Thread Starter
Lively Member
have u got email .. i can send to you
-
Oct 10th, 2001, 05:45 AM
#15
-= B u g S l a y e r =-
-
Oct 10th, 2001, 05:57 AM
#16
Thread Starter
Lively Member
-
Oct 10th, 2001, 05:59 AM
#17
-= B u g S l a y e r =-
-
Oct 10th, 2001, 06:05 AM
#18
-= B u g S l a y e r =-
result :
is that what it should look like?
-
Oct 10th, 2001, 06:14 AM
#19
Thread Starter
Lively Member
yup.. exactly...
you running win2k yeah
if so then.. hmm must be my friends system....
thanks for all the help =)
-
Oct 10th, 2001, 06:20 AM
#20
-= B u g S l a y e r =-
yes 2k,
ask u'r friend to check if he has large fonts sat in the display settings... it tends to f.... things up this way.
-
Oct 10th, 2001, 06:24 AM
#21
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|