Click here to Skip to main content
15,905,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: copy Datagridview value to another datagridview Pin
Mycroft Holmes11-Nov-10 12:10
professionalMycroft Holmes11-Nov-10 12:10 
Questionhow to detect the type of device plugged into Pin
emmmatty110-Nov-10 23:47
emmmatty110-Nov-10 23:47 
AnswerRe: how to detect the type of device plugged into Pin
musefan11-Nov-10 0:11
musefan11-Nov-10 0:11 
AnswerRe: how to detect the type of device plugged into Pin
_Erik_11-Nov-10 0:12
_Erik_11-Nov-10 0:12 
QuestionInstalling a Exe Pin
Anil Kumar.Arvapalli10-Nov-10 23:37
Anil Kumar.Arvapalli10-Nov-10 23:37 
AnswerRe: Installing a Exe Pin
musefan11-Nov-10 0:07
musefan11-Nov-10 0:07 
AnswerRe: Installing a Exe Pin
ShafiqA11-Nov-10 1:49
ShafiqA11-Nov-10 1:49 
GeneralRe: Installing a Exe Pin
Anil Kumar.Arvapalli11-Nov-10 3:15
Anil Kumar.Arvapalli11-Nov-10 3:15 
GeneralRe: Installing a Exe Pin
Dave Kreskowiak11-Nov-10 3:31
mveDave Kreskowiak11-Nov-10 3:31 
Questionhow to effectively remove background of an image c# Pin
pancakeleh10-Nov-10 20:46
pancakeleh10-Nov-10 20:46 
AnswerRe: how to effectively remove background of an image c# Pin
musefan10-Nov-10 23:18
musefan10-Nov-10 23:18 
GeneralRe: how to effectively remove background of an image c# Pin
pancakeleh11-Nov-10 14:22
pancakeleh11-Nov-10 14:22 
GeneralRe: how to effectively remove background of an image c# Pin
musefan12-Nov-10 2:23
musefan12-Nov-10 2:23 
AnswerRe: how to effectively remove background of an image c# Pin
fjdiewornncalwe12-Nov-10 4:02
professionalfjdiewornncalwe12-Nov-10 4:02 
QuestionMvvm - Validation [modified] Pin
manni198110-Nov-10 20:45
manni198110-Nov-10 20:45 
QuestionHow can i know what is the bitmap color size of each pixel ? Pin
Yanshof10-Nov-10 20:17
Yanshof10-Nov-10 20:17 
AnswerRe: How can i know what is the bitmap color size of each pixel ? Pin
David Ewen10-Nov-10 21:31
professionalDavid Ewen10-Nov-10 21:31 
AnswerRe: How can i know what is the bitmap color size of each pixel ? Pin
_Erik_11-Nov-10 1:46
_Erik_11-Nov-10 1:46 
Questionhow to generate toolstrip like glossy sky blue color for my forms back color? Pin
Tridip Bhattacharjee10-Nov-10 18:58
professionalTridip Bhattacharjee10-Nov-10 18:58 
QuestionDetecting display setting change like dual display ,resolution change etc. Pin
HalliHaida10-Nov-10 18:26
HalliHaida10-Nov-10 18:26 
AnswerRe: Detecting display setting change like dual display ,resolution change etc. Pin
Luc Pattyn10-Nov-10 23:37
sitebuilderLuc Pattyn10-Nov-10 23:37 
AnswerRe: Detecting display setting change like dual display ,resolution change etc. Pin
_Erik_11-Nov-10 0:05
_Erik_11-Nov-10 0:05 
In this line:

EnumDisplayDevices(screen.DeviceName, 0, ref monitor, 0);


You are always passing 0 to iDevNum parameter, so you are always getting the same data. See remarks here[^]. Anyhow, I don't know why you need to use the EnumDisplayDevices function. If you want your primary screen you have it in System.Windows.Forms.Screen.PrimaryScreen, and if you want all the active screens you have them in System.Windows.Forms.Screen.AllScreens. To know what is the reason of the event you can get the configuration at the beginning and compare with it when the event is raised.
QuestionNo problem.. just more of "What would you do" question.. Pin
Jacob D Dixon10-Nov-10 11:14
Jacob D Dixon10-Nov-10 11:14 
AnswerRe: No problem.. just more of "What would you do" question.. Pin
_Erik_11-Nov-10 0:44
_Erik_11-Nov-10 0:44 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon11-Nov-10 3:58
Jacob D Dixon11-Nov-10 3:58 

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.