Re: Resizing MDI Child forms

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Pete" <Pete@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D3ADFAD1-
B494-4245-8F86-A831B7DE6395@xxxxxxxxxxxxx
> Many thanks for your replies.
>
> I have a picture box control which is aligned to the left side of the
> MDI Parent form (used to house command buttons to change the MDI
> Child form).

I'd still have an SDI form and use an array of frames or user controls or
whatever in the "client" area. If you don't have multiple child forms
usable at any given time then MDI is probably not the best approach.

> I tried to maximise the child form - by setting the
> WindowState property to 2- Maximized- but the form did not show at
> all.

Did you use the Show method or Visible=True?

> Each form - and associated controls - will need to resize differently.
> Therefore, is it posssible to run the code inside each Child form's
> Resize event, using the MDIForm.ActiveForm1 method you described
> earlier?

I don't see why not although if the parent is resized you may have to add
code to force the child to resize.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.


Quantcast