Click here to Skip to main content
14,980,532 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDetect if ANY control is clicked inside a form, regardless of the container Pin
Dennis Bork3-Dec-12 3:39
MemberDennis Bork3-Dec-12 3:39 
Answercrosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:47
professionalEddy Vluggen3-Dec-12 4:47 
GeneralRe: crosspost from C# forum Pin
Pete O'Hanlon3-Dec-12 4:54
mvePete O'Hanlon3-Dec-12 4:54 
GeneralRe: crosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:56
professionalEddy Vluggen3-Dec-12 4:56 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Eddy Vluggen3-Dec-12 5:03
professionalEddy Vluggen3-Dec-12 5:03 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
April Fans27-Dec-12 16:13
MemberApril Fans27-Dec-12 16:13 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
jenitshah19-Jan-13 15:59
Memberjenitshah19-Jan-13 15:59 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Simon Bridge4-Feb-13 12:13
MemberSimon Bridge4-Feb-13 12:13 
Hi,

One other (slightly heavy handed) possibility is to override the Windows Procedure in your form.

You can then intercept all the windows messages it receives, and filter down to the mouse events.

eg:

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    protected override void WndProc(ref Message m)
    {
        base.WndProc(ref m);
    }
}


You can get an enum containing all the windows message constants here: [^]
QuestionWix based installer does not execute custom action on upgrade Pin
Prasanth Vijayan11-Nov-12 23:12
MemberPrasanth Vijayan11-Nov-12 23:12 
Questionhow to ad a new records into database using data binding? Pin
tinychi26-Oct-12 23:42
Membertinychi26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 0:39
professionalEddy Vluggen28-Oct-12 0:39 
GeneralRe: how to ad a new records into database using data binding? Pin
tinychi28-Oct-12 22:36
Membertinychi28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 23:28
professionalEddy Vluggen28-Oct-12 23:28 
QuestionCurrency formatting Pin
MandyHouse22-Oct-12 15:34
MemberMandyHouse22-Oct-12 15:34 
AnswerRe: Currency formatting Pin
Eddy Vluggen23-Oct-12 23:56
professionalEddy Vluggen23-Oct-12 23:56 
QuestionControls Opacity Pin
ALIJavany11-Oct-12 1:33
MemberALIJavany11-Oct-12 1:33 
AnswerCross post Pin
Wes Aday11-Oct-12 1:38
professionalWes Aday11-Oct-12 1:38 
AnswerRe: Controls Opacity Pin
SoyDesarrollador.net12-Oct-12 9:03
MemberSoyDesarrollador.net12-Oct-12 9:03 
GeneralRe: Controls Opacity Pin
Richard MacCutchan12-Oct-12 9:07
mveRichard MacCutchan12-Oct-12 9:07 
GeneralRe: Controls Opacity Pin
SoyDesarrollador.net12-Oct-12 9:15
MemberSoyDesarrollador.net12-Oct-12 9:15 
GeneralRe: Controls Opacity Pin
Richard MacCutchan12-Oct-12 9:32
mveRichard MacCutchan12-Oct-12 9:32 
GeneralRe: Controls Opacity Pin
lukeer3-Dec-12 21:17
Memberlukeer3-Dec-12 21:17 
Question.bat execution Or something else? Pin
Jason Sani10-Oct-12 9:43
MemberJason Sani10-Oct-12 9:43 
AnswerRe: .bat execution Or something else? Pin
Eddy Vluggen10-Oct-12 11:41
professionalEddy Vluggen10-Oct-12 11:41 
AnswerRe: .bat execution Or something else? Pin
Dave Kreskowiak10-Oct-12 13:04
mveDave Kreskowiak10-Oct-12 13:04 

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.