Hi Daniel,
Based on my understanding, you want to determine the child control's shift
key state when this control is clicked.
For this, we may hook child control's MouseDown event, in this event, use
Control.ModifierKeys property to determine the shift key state. Event the
child control do not have focus before you clicked, it can determine the
shift key state. Code like this:
private void textBox1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if(Control.ModifierKeys==Keys.Shift)
{
Console.WriteLine("You pressed shift key!");
}
}
If I misunderstand you, please feel free to point out. Thanks
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Daniel Carlsson - 01 Oct 2004 07:42 GMT
Thank you, thats exactly what I was looking for.
/Dan
> Hi Daniel,
>
[quoted text clipped - 24 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 01 Oct 2004 08:30 GMT
You are welcome! If you need further help, please feel free to post in this
group, I will work with you. Thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.