Jonathan said:
Tried this. No luck. I appriciate the info.
Hi Jonathan,
It should work.
If you need your form to completely transparent, you should handle a way
for the user to exit your application.
public class MyForm : Form
{
public MyForm()
{
BackColor = Color.Magenta;
TransparencyKey = Color.Magenta;
//FormBorderStyle = FormBorderStyle.None; // CAUTION
//ShowInTaskbar = false; // CAUTION
}
private void DrawSomething(Graphics g)
{
Font font = new Font(FontFamily.GenericSansSerif, 14.0f);
g.DrawString("Hello World!", font, Brushes.Blue, 20f, 20f);
font.Dispose();
}
protected override void OnPaint(PaintEventArgs e)
{
DrawSomething(e.Graphics);
base.OnPaint(e);
}
[STAThread]
public static void Main(string[] args)
{
Application.Run(new MyForm());
}
}