|
-
Apr 18th, 2000, 12:24 AM
#1
Thread Starter
Hyperactive Member
picture box question.......
Hi,
I need to put multiple pictures on an MDI form(around a login form in the centre of the screen). Im using picture boxes and then placing image controls on the picture boxes. Im doing this coz I can't place an image control on the MDI form without using a picture box and Im using the image control coz it has the stretch property which the picture box doesn't have.
My problem is that the picture boxes on the MDI form are aligned either at the top, bottom, left or right of the form. Is there anyway that I can prevent the alignment? When I looked up MSDN it said that the "0 - none" value for the align property of the picture box is ignored when the picture box is placed on an MDI form.
Thanks,
Rammy.
-
Apr 18th, 2000, 06:08 AM
#2
Fanatic Member
VbAlignNone 0
(Default in a non-MDI form)
None — size and location can be set at design time or in code. This setting is ignored if the object is on an MDI form.
VbAlignTop 1
(Default in an MDI form) Top — object is at the top of the form, and its width is equal to the form's ScaleWidth property setting.
Hi Rammy,
I had i quick look at MSDN and from my transalation of their info (pasted above) i interpreted it as meaning:
that when using an MDI form then the Align=None option is NOT AVAILABLE. which leads me to the next point...
How many images exactly?
is it not possible to use a form with no title bar (Border=none or is it 0) and make it an MDIChild=true, andload whatever you need into that?
DocZaf
{;->
-
Apr 18th, 2000, 08:23 AM
#3
New Member
Hellow you all VB freeks...
I agree with Zaf about using a child form with no border.
From what I know, that's the only way you can put any picture or control on the MDI backgroung... (except a pic wich covers the MDI background but wich cannot be placed in a specific location).
I only wanted to add to what Zaf said, that using a form on the background of the MDI can allow you to change that form and his controls size when a user changes the size of the MDI form... (With the correct MDI form event).
Enjoy...
Edy
-
Apr 18th, 2000, 08:33 AM
#4
Frenzied Member
Or make your own User Control, If you use the interface wizard you probably won't have to write one line of code.
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
|