
Allow MDI Child form to overlap Aligned Picture Box in MDI Form
I'm not suggesting you make it a Modal form; you can't show MDI child forms
modally anyway. I'm suggesting you not make it an MDI child. Then it's not
constrained by the MDI parent window, and can go anywhere. But that
includes outside the boundaries of the MDI parent window. I don't know if
that's a problem for you or not. But if you look at floating windows like
what you want in other apps, they aren't constrained by the container form
either. This is why.
You don't necessarily need ActiveX controls to create dockable windows. VB
supports a "Sizeable ToolWindow" BorderStyle for forms, and it's not a ton
of code to make it "dockable". I understand your time constraints, but I
don't think you're going to get the functionality you want with an MDI
child. Depending on how close you have to make your floating solution, it
could be a lot of work.
Scott
Quote:
> It is just a form for a scheduling componant. But I want it to be moved
> around. I have a picture container at the top that takes up a fair bit of
> room, but it is there for a purpose. It kind of loks funny having this
kind
> of a form only allowed to move in the bottom half of the MDI Form... I
> could make it modal, but there is a reason I made it non modal; users need
> to access other forms quickly back and forth...
> The form I think is too big to make it dockable and plus I do not have any
> ActiveX controls to do that, or the time to try and do it myself....
> > Not without making the form non-MDI-Child, which probably defeats the
> > purpose of what you're trying to do. Once that happens, the form is no
> > longer contained within the boundaries of the MDI form, so it's no
longer
> > linked to the MDI. If that's a problem, then I think you're out of
luck.
> > Previous posters who have tried some form of always-on-top API
> functionality
> > with an MDI child never got good results, primarily because child forms
> > aren't designed to do that. I can't think of any other way to
accomplish
> > what you want.
> > What is this "breathable form" representing? Can you make it some sort
of
> > dockable toolbar-type thing?
> > Scott
> > > I see.... That fubars some things up for me. Is there anyway to
acheive
> > > this effect at all? An API maybe?
> > > > > Basically I have one non modal form that needs to be able to
breathe
> > in
> > > > the
> > > > > MDI form... It has to be able to overlap the aligned picture
box...
> > > > While
> > > > > the other non modal forms do not have this ability.
> > > > If its MDIChild property is True then it will NEVER overlap the
> picture
> > > box
> > > > and there's no way around it.