本文介绍了如何在中心屏幕上创建红点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如何在中心屏幕上创建红点?它不可点击,始终位于顶部.

(针对反恐精英):)

Hello,

How to create red dot at center screen? It''s not clickable, always top on.

(For counter-strike cross) :)

推荐答案

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

static class Program
{
    static Form RedDot;

    [STAThread]
    static void Main()
    {
        RedDot = new Form();
        RedDot.AutoSize = false;
        RedDot.BackColor = Color.Red;
        RedDot.FormBorderStyle = FormBorderStyle.None;
        RedDot.ShowInTaskbar = false;
        RedDot.Size = new Size(1, 1);
        RedDot.StartPosition = FormStartPosition.CenterScreen;
        RedDot.TopMost = true;
        RedDot.Shown += new EventHandler(RedDot_Shown);
        Application.Run(RedDot);
    }

    static void RedDot_Shown(object sender, EventArgs e)
    {
        RedDot.Size = new Size(1, 1);
    }
}



这篇关于如何在中心屏幕上创建红点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 02:33