Detecting mouse clicks outside my form.
Hello
I'm very new to c# but I do have a background of programming.
What I wanted todo was to be able to detect mouse clicks in another window.
It's for a colour picker.
Thanks.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

abdullah115 pointsPosted Aug 10, 2005, 4:11 PM EDT
you Can use ColorDialog Class for choosing a particular color :
protected void button1_Click(object sender, System.EventArgs e) { ColorDialog MyDialog = new ColorDialog(); // Keeps the user from selecting a custom color. MyDialog.AllowFullOpen = false ; // Allows the user to get help. (The default is false.) MyDialog.ShowHelp = true ; // Sets the initial color select to the current text color. MyDialog.Color = textBox1.ForeColor ; // Update the text box color if the user clicks OK if (MyDialog.ShowDialog() == DialogResult.OK) textBox1.ForeColor = MyDialog.Color; } Plz inform me with the results.... Good Luck.....Michael3 pointsPosted Aug 10, 2005, 8:37 PM EDT