Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: PropertyGrid change font of Values Pin
Xmen Real 14-Dec-08 14:38
professional Xmen Real 14-Dec-08 14:38 
Questionsaving DataTable in Properties.Settings Pin
Xmen Real 14-Dec-08 6:31
professional Xmen Real 14-Dec-08 6:31 
AnswerRe: saving DataTable in Properties.Settings Pin
Christian Graus14-Dec-08 9:37
protectorChristian Graus14-Dec-08 9:37 
GeneralRe: saving DataTable in Properties.Settings Pin
Xmen Real 14-Dec-08 14:40
professional Xmen Real 14-Dec-08 14:40 
QuestionHow to capture video file on screen? Pin
ping_jacob14-Dec-08 6:16
ping_jacob14-Dec-08 6:16 
AnswerRe: How to capture video file on screen? Pin
Xmen Real 14-Dec-08 6:37
professional Xmen Real 14-Dec-08 6:37 
QuestionControls Overlapping Pin
Silvyster14-Dec-08 2:29
Silvyster14-Dec-08 2:29 
AnswerRe: Controls Overlapping Pin
Colin Angus Mackay14-Dec-08 4:42
Colin Angus Mackay14-Dec-08 4:42 
You need to look at the existing picture boxes and if they overlap with your new picture box then move your new picture box.

Detecting an overlap is fairly simple. Each control can give you its Bounds[^], which is a Rectangle[^] object. The Rectangle structure has an IntersectsWith[^] method which will return true if the rectangles intersect (overlap) with each other.

For example:
bool isOverlapping = firstPictureBox.Bounds.IntersectsWith(secondPictureBox.Bounds);



QuestionDesigner Crashes IDE Pin
#realJSOP14-Dec-08 2:11
mve#realJSOP14-Dec-08 2:11 
AnswerRe: Designer Crashes IDE Pin
Giorgi Dalakishvili14-Dec-08 2:26
mentorGiorgi Dalakishvili14-Dec-08 2:26 
GeneralRe: Designer Crashes IDE Pin
#realJSOP14-Dec-08 5:52
mve#realJSOP14-Dec-08 5:52 
GeneralRe: Designer Crashes IDE Pin
Giorgi Dalakishvili14-Dec-08 5:57
mentorGiorgi Dalakishvili14-Dec-08 5:57 
AnswerRe: Designer Crashes IDE Pin
Christian Graus14-Dec-08 9:38
protectorChristian Graus14-Dec-08 9:38 
GeneralRe: Designer Crashes IDE Pin
#realJSOP14-Dec-08 11:27
mve#realJSOP14-Dec-08 11:27 
QuestionHow to put Hyperlink in MessageBox Pin
ajpatel22514-Dec-08 2:07
ajpatel22514-Dec-08 2:07 
AnswerRe: How to put Hyperlink in MessageBox Pin
Giorgi Dalakishvili14-Dec-08 5:47
mentorGiorgi Dalakishvili14-Dec-08 5:47 
QuestionSession checking Pin
B8714-Dec-08 2:00
B8714-Dec-08 2:00 
AnswerRe: Session checking Pin
Christian Graus14-Dec-08 8:26
protectorChristian Graus14-Dec-08 8:26 
QuestionSort Taskbar Items Pin
C470214-Dec-08 1:44
C470214-Dec-08 1:44 
AnswerRe: Sort Taskbar Items Pin
Giorgi Dalakishvili14-Dec-08 1:53
mentorGiorgi Dalakishvili14-Dec-08 1:53 
QuestionnHibernate or Microsoft Data Access Application Block Pin
alexjamesbrown13-Dec-08 23:04
alexjamesbrown13-Dec-08 23:04 
QuestionLocking a form when another form is opened??? Pin
shw 23413-Dec-08 21:58
shw 23413-Dec-08 21:58 
AnswerRe: Locking a form when another form is opened??? Pin
ahmed eldeghedy13-Dec-08 22:15
professionalahmed eldeghedy13-Dec-08 22:15 
AnswerRe: Locking a form when another form is opened??? Pin
jas0n2313-Dec-08 22:25
jas0n2313-Dec-08 22:25 
Questionautocomplete in datagraid Pin
ahmed eldeghedy13-Dec-08 21:35
professionalahmed eldeghedy13-Dec-08 21:35 

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.