Click here to Skip to main content
15,901,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to create sub menu item by coding Pin
musefan21-May-09 22:29
musefan21-May-09 22:29 
AnswerRe: how to create sub menu item by coding Pin
padmanabhan N21-May-09 23:32
padmanabhan N21-May-09 23:32 
Questionsending sms using C# windows application Pin
Nath21-May-09 20:37
Nath21-May-09 20:37 
AnswerRe: sending sms using C# windows application Pin
0x3c021-May-09 21:28
0x3c021-May-09 21:28 
GeneralRe: sending sms using C# windows application Pin
Nath21-May-09 21:35
Nath21-May-09 21:35 
GeneralRe: sending sms using C# windows application Pin
0x3c021-May-09 21:44
0x3c021-May-09 21:44 
GeneralRe: sending sms using C# windows application Pin
Rinosh_sasidharan11-Dec-09 5:43
Rinosh_sasidharan11-Dec-09 5:43 
QuestionCheck Mistake [modified] Pin
M Riaz Bashir21-May-09 19:53
M Riaz Bashir21-May-09 19:53 
Hi,

i am trying to get cursor position clicking anywhere except my application. I used keydown event on my form for checking, it works. But when i click anywhere it does'nt work Frown | :(
please check my code and tell me where am I doing mistak?

Thank you in Advance
(Riaz)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MM1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            Click += new System.EventHandler(Raised_Click);
        }

        private void Raised_Click(object sender, EventArgs e)
        {
            label1.Text = Cursor.Position.X.ToString() + "  ;  " + Cursor.Position.Y.ToString();            
        }

        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Space)
            {
                label1.Text = Cursor.Position.X.ToString() + "  ;  " + Cursor.Position.Y.ToString();
            }
        }
    }
}


modified on Friday, May 22, 2009 2:27 AM

AnswerRe: Check Mistake Pin
MumbleB21-May-09 20:33
MumbleB21-May-09 20:33 
GeneralRe: Check Mistake Pin
M Riaz Bashir21-May-09 20:36
M Riaz Bashir21-May-09 20:36 
AnswerRe: Check Mistake Pin
dan!sh 21-May-09 20:47
professional dan!sh 21-May-09 20:47 
GeneralRe: Check Mistake Pin
M Riaz Bashir21-May-09 21:01
M Riaz Bashir21-May-09 21:01 
QuestionAdd piviot table functinality Pin
Dushan12321-May-09 19:35
Dushan12321-May-09 19:35 
Questioncheckedlistbox - windows application Pin
havejeet21-May-09 19:03
havejeet21-May-09 19:03 
AnswerRe: checkedlistbox - windows application Pin
Anil Chauhan21-May-09 19:32
Anil Chauhan21-May-09 19:32 
GeneralRe: checkedlistbox - windows application Pin
havejeet21-May-09 20:14
havejeet21-May-09 20:14 
GeneralRe: checkedlistbox - windows application Pin
0x3c021-May-09 21:56
0x3c021-May-09 21:56 
GeneralRe: checkedlistbox - windows application Pin
havejeet21-May-09 23:57
havejeet21-May-09 23:57 
GeneralRe: checkedlistbox - windows application Pin
havejeet23-May-09 1:50
havejeet23-May-09 1:50 
QuestionHow to add .Net framework in an msi setup? Pin
svt gdwl21-May-09 18:43
svt gdwl21-May-09 18:43 
AnswerRe: How to add .Net framework in an msi setup? Pin
MumbleB21-May-09 19:14
MumbleB21-May-09 19:14 
QuestionSending mail from localhost application and from live server Pin
logicaldna21-May-09 17:45
logicaldna21-May-09 17:45 
QuestionError in retrieving data from SQL Pin
misCafe21-May-09 15:48
misCafe21-May-09 15:48 
AnswerRe: Error in retrieving data from SQL Pin
Luc Pattyn21-May-09 16:11
sitebuilderLuc Pattyn21-May-09 16:11 
GeneralRe: Error in retrieving data from SQL Pin
misCafe21-May-09 16:34
misCafe21-May-09 16:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.