透明、可点击、可文本显示的表格c#

透明、可点击、可文本显示的表格c#,c#,winforms,C#,Winforms,你好,我想使表单应用程序,将是全屏透明和点击通过,但它会显示文本。如果有办法在屏幕顶部显示文本,我甚至不需要表单(如果有更多的应用程序将被打开) 像这样 谢谢。使用此示例代码: using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApp1 { static class Program { [STAThread] static v

你好,我想使表单应用程序,将是全屏透明和点击通过,但它会显示文本。如果有办法在屏幕顶部显示文本,我甚至不需要表单(如果有更多的应用程序将被打开)

像这样

谢谢。

使用此示例代码:

using System;
using System.Drawing;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var F = new Form
            {
                BackColor = Color.Black,
                TransparencyKey = Color.Black,
                Bounds = Screen.PrimaryScreen.Bounds,
                FormBorderStyle = FormBorderStyle.None,
            };

            var L = new Label
            {
                AutoSize = false,
                Text="Hello, World!",
                Dock = DockStyle.Fill,
                ForeColor = Color.White,
                Font = new Font("Consolas", 26),
                TextAlign = ContentAlignment.MiddleCenter
            };

            F.Controls.Add(L);
            Application.Run(F);
        }
    }
}

什么样的应用程序、Web应用程序、控制台应用程序等,到目前为止您做了什么?我建议读一个好问题。另外,一定要带上“我有整个应用程序”(Windows窗体),你可以发布你尝试过的内容,并清楚地解释哪些内容不起作用,并提供一个“我有整个应用程序”(Windows窗体)。该应用程序应该只显示标签。现有的问题有很好的答案,还有很多谷歌搜索结果。正是我需要的。谢谢您。