Click here to Skip to main content
15,913,297 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting system specs without WMI Pin
CCodeNewbie5-Oct-11 11:03
CCodeNewbie5-Oct-11 11:03 
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 
Hi everyone, with the below code, I'm able to draw a rectangle by clicking and dragging the mouse. So the question is: Can I access the controls within that selected rectangle/area? Any clue or a piece of code that puts me in the right direction would be appreciated. Thanks

Rectangle re;
 private void form_MouseDown(object sender, MouseEventArgs e)
 {
     re.X = e.X;
     re.Y = e.Y;
     re.Width = 0;
     re.Height = 0;
 }

 private void form_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         re.Width = e.X - re.X;
         re.Height = e.Y - re.Y;
         this.Invalidate();
     }
 }

 private void form_Paint(object sender, PaintEventArgs e)
 {
     SolidBrush myBrush;
     myBrush = new SolidBrush(Color.PaleTurquoise);
     e.Graphics.FillRectangle(myBrush, re);
 }

 private void Form1_Click(object sender, EventArgs e)
 {
     re = new Rectangle(0, 0, 0, 0);
     this.Invalidate();
 }

AnswerRe: Accessing the controls in selected area PinPopular
Pete O'Hanlon5-Oct-11 4:16
mvePete O'Hanlon5-Oct-11 4:16 
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 

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.