Creating a floating "toolbox"

G

Guest

I have an application with a single main form. I want to create a "toolbox"
form that always floats above the main form, but does NOT float above all the
windows on the desktop. How can I accomplish this in .NET?
 
H

Herfried K. Wagner [MVP]

Justin,

Justin Walgran said:
I have an application with a single main form. I want to create a "toolbox"
form that always floats above the main form, but does NOT float above all
the
windows on the desktop. How can I accomplish this in .NET?

Set the form's 'FormBorderStyle' property to one of the tool window border
styles. You can use the code below to show the tool window:

\\\
Dim f As New ToolForm()
f.Owner = Me
f.Show()
///
 
G

Guest

Thank you. I was missing the "f.Owner" line.




Herfried K. Wagner said:
Justin,



Set the form's 'FormBorderStyle' property to one of the tool window border
styles. You can use the code below to show the tool window:

\\\
Dim f As New ToolForm()
f.Owner = Me
f.Show()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top