Results 1 to 4 of 4

Thread: kinda urgent......but maybe, just maybe kinda simple question.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298

    Question 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.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    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
    {;->



  3. #3
    New Member
    Join Date
    Apr 2000
    Posts
    12
    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

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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
  •  



Click Here to Expand Forum to Full Width