如何在中心屏幕上创建红点? [英] How to create red dot at center screen?
本文介绍了如何在中心屏幕上创建红点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
如何在中心屏幕上创建红点?它不可点击,始终位于顶部.
(针对反恐精英):)
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);
}
}
您可以采用具有以下属性的表单
BackColor = Color.Red
ControlBox = false
FormBorderStyle = FixedToolWindows
MaximizeBox = false
MinimazeBox = false
大小= 1,1
StartPosition = CenterScreen
TopMost = True
并加载相同的表格
如果您遇到任何问题,请告诉我
我已经检查完毕
谢谢
:)
You can take a form with following property
BackColor=Color.Red
ControlBox=false
FormBorderStyle=FixedToolWindows
MaximizeBox=false
MinimazeBox=false
size=1,1
StartPosition=CenterScreen
TopMost=True
and Load Same Form
If you face any issue tell me
I have done and checked practically
Thanks
:)
这篇关于如何在中心屏幕上创建红点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文