Floating A Form (But Not Always On Top) - [RESOLVED]
in VB6 I use to do this to hover a form over the underneath form.. kinda like a toolbox.
Form2.Show, form1
Form2 is the toolbox
Form1 is the Main form
How do I do this in .NET
I know how to show a form
Dim f as Form
f.Show() .....or.... f.ShowDialog
But I want to float a form, yet not be "always on top" of all windows on desktop.
Thanks
1 Attachment(s)
Re: Hovering A Form (Not Always On Top)
I have poured over (6 hours) the SDK docs to find a solution. The SDK Doc says to use "fForm.Show()" to show a modeless form.
And it does what it is suppose to.
But I still can not figure out how to just make the toolbox form (form2) stay above Main form (Form1) but yet not be TopMost above all others.
When I use TopMost on the Toolbox, it stays above ALL windows that I have open. I don't want that.
This is suppose to be a floating toolbox that only stays above the main (or parent) form, but will stay with the main form if I click on, say a Notepad window.
Does anybody know what I am trying to do??
.
Re: Floating (hovering) A Form (Not Always On Top)
How do people float a "Find-Replace Text", "Spell Check" or "Toolbox" form in their apps.
Surely M$ didn't do away with this method too!!??
Re: Floating (hovering) A Form (Not Always On Top)
Come on here...
Are there any .NET programmers here?
:rolleyes:
Re: Floating (hovering) A Form (Not Always On Top)
I thought this was a forum where you can find answers??
:D
Re: Floating (hovering) A Form (Not Always On Top)
Re: Floating A Form (But Not Always On Top) - [RESOLVED]
RESOLVED!!
I can't believe noone knew this.
:rolleyes:
VB Code:
f = New Form1()
f.TopMost = False
f.Owner = Me
f.Show()
FYI... You will not need any special resizing code to minimize toolbox (floating form) as I mentioned at the start of the thread.
.