Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting system specs without WMI Pin
Dave Kreskowiak5-Oct-11 15:44
mveDave Kreskowiak5-Oct-11 15:44 
GeneralRe: Getting system specs without WMI Pin
CCodeNewbie5-Oct-11 19:25
CCodeNewbie5-Oct-11 19:25 
GeneralRe: Getting system specs without WMI Pin
Dave Kreskowiak6-Oct-11 3:39
mveDave Kreskowiak6-Oct-11 3:39 
QuestionFor Remote Connection -SQL Server Pin
Paramu19735-Oct-11 4:21
Paramu19735-Oct-11 4:21 
AnswerRe: For Remote Connection -SQL Server Pin
PIEBALDconsult5-Oct-11 5:22
mvePIEBALDconsult5-Oct-11 5:22 
GeneralRe: For Remote Connection -SQL Server Pin
Paramu19735-Oct-11 19:30
Paramu19735-Oct-11 19:30 
QuestionAccessing the controls in selected area Pin
teknolog1235-Oct-11 3:59
teknolog1235-Oct-11 3:59 
AnswerRe: Accessing the controls in selected area PinPopular
Pete O'Hanlon5-Oct-11 4:16
mvePete O'Hanlon5-Oct-11 4:16 
Without trying it, off the top of my head, one way to achieve this would be to use the Rectangle.IntersectsWith method. Basically, each control on your form has a corresponding rectangle associated with it, and you would be able to compare this with the rectangle you've dragged out.

Note that this assumes you want to pick any control touched by your rectangle. If the child controls must be inside the rectangle, you could use Rectangle.Contains. As an optimisation, I'd be tempted to do one pass and add the control id and rectangle into a Dictionary so that you don't have to look it up every time.

Forgive your enemies - it messes with their heads

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: Accessing the controls in selected area Pin
teknolog1235-Oct-11 4:49
teknolog1235-Oct-11 4:49 
GeneralRe: Accessing the controls in selected area Pin
Pete O'Hanlon5-Oct-11 4:52
mvePete O'Hanlon5-Oct-11 4:52 
QuestionAbout Control panel functions Pin
ugdjan5-Oct-11 3:10
ugdjan5-Oct-11 3:10 
AnswerRe: About Control panel functions Pin
Luc Pattyn5-Oct-11 4:08
sitebuilderLuc Pattyn5-Oct-11 4:08 
QuestionFingerprint Capture / dialog Pin
Member 76779895-Oct-11 2:29
Member 76779895-Oct-11 2:29 
AnswerRe: Fingerprint Capture / dialog Pin
Dave Kreskowiak5-Oct-11 4:54
mveDave Kreskowiak5-Oct-11 4:54 
QuestionOpen a pdf file on a winform project Pin
NarVish5-Oct-11 1:39
NarVish5-Oct-11 1:39 
AnswerRe: Open a pdf file on a winform project Pin
Wayne Gaylard5-Oct-11 1:49
professionalWayne Gaylard5-Oct-11 1:49 
GeneralRe: Open a pdf file on a winform project Pin
Pravin Patil, Mumbai5-Oct-11 1:56
Pravin Patil, Mumbai5-Oct-11 1:56 
GeneralRe: Open a pdf file on a winform project Pin
Wayne Gaylard5-Oct-11 2:05
professionalWayne Gaylard5-Oct-11 2:05 
AnswerRe: Open a pdf file on a winform project Pin
Luc Pattyn5-Oct-11 2:08
sitebuilderLuc Pattyn5-Oct-11 2:08 
GeneralRe: Open a pdf file on a winform project Pin
BobJanova5-Oct-11 2:31
BobJanova5-Oct-11 2:31 
QuestionHow to query application using an sms Pin
dbongs5-Oct-11 1:11
dbongs5-Oct-11 1:11 
AnswerRe: How to query application using an sms Pin
Mycroft Holmes5-Oct-11 2:10
professionalMycroft Holmes5-Oct-11 2:10 
GeneralRe: How to query application using an sms Pin
Dave Kreskowiak5-Oct-11 4:49
mveDave Kreskowiak5-Oct-11 4:49 
AnswerRe: How to query application using an sms Pin
Dave Kreskowiak5-Oct-11 4:51
mveDave Kreskowiak5-Oct-11 4:51 
QuestionShortcut classes in another project Pin
mehrdadc484-Oct-11 20:49
mehrdadc484-Oct-11 20:49 

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.