Tiny Window

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?
 
M

Marc Gravell

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
 
D

Dave Sexton

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);
}
 

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

Similar Threads


Top