Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C#3.5
Hello,
 
How to create red dot at center screen? It's not clickable, always top on.
 
(For counter-strike cross) Smile | :)
Posted 20-Jul-10 4:20am
Comments
Sandeep Mewara at 20-Jul-10 9:28am
   
Elaborate! what screen?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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);
    }
}
  Permalink  
Comments
Khaniya at 26-Jul-10 4:39am
   
hi good
answer but still click able
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
 
Smile | :)
  Permalink  
Comments
Toli Cuturicu at 20-Jul-10 10:32am
   
Reason for my vote of 1
does not work as expected
Khaniya at 21-Jul-10 1:38am
   
Toli Cuturicu
What is the issue with above information?
can you tell me please?
Thanks
Toli Cuturicu at 26-Jul-10 13:52pm
   
You did not try your code. It simply does not produce a red dot.
Don't lie anymore.
Khaniya at 27-Jul-10 2:47am
   
Toli I have not provided entire code. I just want to show that this can be solve on this way. It was just basic information.
It is good to give answer with code but it is necessary to provide entire code as you did.
And most important thing that hurt me "I am not lire"
 
I am really very sorry if I hurts you anyway.
 
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 20 Jul 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100