Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get visible part from a Form / Control Pin
OriginalGriff31-Jan-10 10:22
mveOriginalGriff31-Jan-10 10:22 
AnswerRe: Get visible part from a Form / Control Pin
Luc Pattyn31-Jan-10 14:33
sitebuilderLuc Pattyn31-Jan-10 14:33 
Hi,

this may or may not help you out:
- get the screen coordinates "RECT" of the Form
- perform Graphics.CopyFromScreen for that RECT to get bitmap1
- hide your Form
- perform Graphics.CopyFromScreen for that RECT to get bitmap2
- show your Form
- now calculate difference of bitmap1 and bitmap2 by comparing all pixels; if you find major regions that didn't change, those were/are covered by something else.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


QuestionAccessing data without using database (.Net 2005). Pin
priyamtheone31-Jan-10 5:39
priyamtheone31-Jan-10 5:39 
AnswerRe: Accessing data without using database (.Net 2005). Pin
Not Active31-Jan-10 5:43
mentorNot Active31-Jan-10 5:43 
GeneralRe: Accessing data without using database (.Net 2005). Pin
priyamtheone31-Jan-10 6:15
priyamtheone31-Jan-10 6:15 
GeneralRe: Accessing data without using database (.Net 2005). Pin
Not Active31-Jan-10 6:34
mentorNot Active31-Jan-10 6:34 
GeneralRe: Accessing data without using database (.Net 2005). Pin
Saksida Bojan31-Jan-10 7:37
Saksida Bojan31-Jan-10 7:37 
AnswerRe: Accessing data without using database (.Net 2005). Pin
DaveyM6931-Jan-10 7:37
professionalDaveyM6931-Jan-10 7:37 
Questionhow to convert Urdu Language in english language? Pin
roheen31-Jan-10 2:19
roheen31-Jan-10 2:19 
AnswerRe: how to convert Urdu Language in english language? PinPopular
OriginalGriff31-Jan-10 2:35
mveOriginalGriff31-Jan-10 2:35 
GeneralRe: how to convert Urdu Language in english language? Pin
DaveyM6931-Jan-10 4:43
professionalDaveyM6931-Jan-10 4:43 
GeneralRe: how to convert Urdu Language in english language? Pin
Luc Pattyn31-Jan-10 5:03
sitebuilderLuc Pattyn31-Jan-10 5:03 
AnswerRe: how to convert Urdu Language in english language? Pin
dan!sh 31-Jan-10 2:47
professional dan!sh 31-Jan-10 2:47 
QuestionSelect word in richtextbox control Pin
salamonty8631-Jan-10 1:56
salamonty8631-Jan-10 1:56 
AnswerRe: Select word in richtextbox control Pin
#realJSOP31-Jan-10 2:04
professional#realJSOP31-Jan-10 2:04 
GeneralRe: Select word in richtextbox control Pin
salamonty8631-Jan-10 2:07
salamonty8631-Jan-10 2:07 
GeneralRe: Select word in richtextbox control Pin
OriginalGriff31-Jan-10 2:30
mveOriginalGriff31-Jan-10 2:30 
AnswerRe: Select word in richtextbox control Pin
TheDudeJuan31-Jan-10 2:25
TheDudeJuan31-Jan-10 2:25 
GeneralRe: Select word in richtextbox control Pin
salamonty8631-Jan-10 2:52
salamonty8631-Jan-10 2:52 
GeneralRe: Select word in richtextbox control Pin
Dan Mos31-Jan-10 3:01
Dan Mos31-Jan-10 3:01 
GeneralRe: Select word in richtextbox control Pin
salamonty8631-Jan-10 3:05
salamonty8631-Jan-10 3:05 
GeneralRe: Select word in richtextbox control Pin
Dan Mos31-Jan-10 3:25
Dan Mos31-Jan-10 3:25 
GeneralRe: Select word in richtextbox control Pin
salamonty8631-Jan-10 3:30
salamonty8631-Jan-10 3:30 
GeneralRe: Select word in richtextbox control Pin
Dan Mos31-Jan-10 3:56
Dan Mos31-Jan-10 3:56 
GeneralRe: Select word in richtextbox control Pin
Mycroft Holmes31-Jan-10 16:06
professionalMycroft Holmes31-Jan-10 16:06 

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.