I'am creating some UI that will have some floating windows like the code below.
But by default, when one window was active, the other will lost focus and became gray in color.
How can I made both look like active. Much like some graphics apps such as photoshop tool window.
Thanks,
CODE
/**
*
*
**/
using System;
using System.Windows.Forms;
using System.Drawing;
public class Program
{
public static void Main(string[] args)
{
form1 AppMain = new form1();
Application.Run(AppMain);
}
}
public class form1 : System.Windows.Forms.Form
{
private ToolPanel tool;
public form1()
{
this.Location = new Point(0, 0);
this.Size = new Size(200, 200);
this.tool = new ToolPanel();
this.tool.Owner = this;
this.Load += new EventHandler(form1_load);
}
private void form1_load(object sender, EventArgs e)
{
if (tool != null)
{
tool.Show();
}
}
}
public class ToolPanel : System.Windows.Forms.Form
{
public ToolPanel()
{
this.Size = new Size(10, 200);
this.ShowInTaskbar = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Text = "Tools";
}
}
*
*
**/
using System;
using System.Windows.Forms;
using System.Drawing;
public class Program
{
public static void Main(string[] args)
{
form1 AppMain = new form1();
Application.Run(AppMain);
}
}
public class form1 : System.Windows.Forms.Form
{
private ToolPanel tool;
public form1()
{
this.Location = new Point(0, 0);
this.Size = new Size(200, 200);
this.tool = new ToolPanel();
this.tool.Owner = this;
this.Load += new EventHandler(form1_load);
}
private void form1_load(object sender, EventArgs e)
{
if (tool != null)
{
tool.Show();
}
}
}
public class ToolPanel : System.Windows.Forms.Form
{
public ToolPanel()
{
this.Size = new Size(10, 200);
this.ShowInTaskbar = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Text = "Tools";
}
}




