Tiny Window

  • Thread starter Thread starter Martijn Mulder
  • Start date Start date
M

Martijn Mulder

I want to implement a tiny window in my application, one that you typically
invoke via the menu-option Window -> Toolbar. It must be floating, not
restricted to the client area of the controlling form. It has a tiny
close-button on the right-hand corner. How do I implement this?
 
This do?

static void Main()
{
using (Form form = new Form())
using (Form tool = new Form())
{
tool.FormBorderStyle = FormBorderStyle.FixedToolWindow;
tool.Text = "Tool";
tool.Owner = form;
tool.Size = new Size(60, 80);
tool.Show();
Application.Run(form);
}
}

Marc
 
Hi,

Try creating a new Form and setting the FormBorderStyle property to
FixedToolWindow or SizableToolWindow.

In an event handler for a Button.Click event, for example, open your Form:

private void button1_Click(object sender, EventArgs e)
{
TinyForm form = new TinyForm();
form.Show(this);
}
 
Back
Top