Click here to Skip to main content
15,891,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Christian Graus9-May-09 12:38
protectorChristian Graus9-May-09 12:38 
AnswerRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 12:37
sitebuilderLuc Pattyn9-May-09 12:37 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 12:41
harold aptroot9-May-09 12:41 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 12:59
sitebuilderLuc Pattyn9-May-09 12:59 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
harold aptroot9-May-09 13:06
harold aptroot9-May-09 13:06 
GeneralRe: Preferred way of bytes to kbytes conversion? Pin
Luc Pattyn9-May-09 13:09
sitebuilderLuc Pattyn9-May-09 13:09 
GeneralEnabling Secondry Monitor using C# Pin
jonesyx9-May-09 9:24
jonesyx9-May-09 9:24 
GeneralRe: Enabling Secondry Monitor using C# Pin
Luc Pattyn9-May-09 12:29
sitebuilderLuc Pattyn9-May-09 12:29 
Hi,

DEVMODE is a complex structure, and changing a display settings requires a valid combination of all the parameters, which isn't easy to come up with, unless you ask the system for the current settings first, then change what you want changed. So I recommend you call EnumDisplaySettings, modify the result, and only then call ChangeDisplaySettingsEx.

Also chances are you are not allowed to change too many parameters at once.

BTW: I did not check your struct; the slightest mistake in its definition would be fatal!
Suggestion: try and check the dmSize field; I would expect the value to be available somewhere on the Internet...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

Questiondatagrid copy Pin
michaelgr19-May-09 7:44
michaelgr19-May-09 7:44 
AnswerRe: datagrid copy Pin
Mycroft Holmes9-May-09 14:32
professionalMycroft Holmes9-May-09 14:32 
Questionsend and recieve data with modem Pin
mehdi rahimzade9-May-09 4:31
mehdi rahimzade9-May-09 4:31 
AnswerRe: send and recieve data with modem Pin
Mohammad Dayyan9-May-09 5:42
Mohammad Dayyan9-May-09 5:42 
AnswerRe: send and recieve data with modem Pin
Rajdeep.NET is BACK9-May-09 6:46
Rajdeep.NET is BACK9-May-09 6:46 
GeneralRe: send and recieve data with modem Pin
mehdi rahimzade9-May-09 8:18
mehdi rahimzade9-May-09 8:18 
GeneralRe: send and recieve data with modem PinPopular
scottgp9-May-09 8:46
professionalscottgp9-May-09 8:46 
GeneralRe: send and recieve data with modem Pin
Henry Minute9-May-09 9:58
Henry Minute9-May-09 9:58 
AnswerRe: send and recieve data with modem Pin
mehdi rahimzade9-May-09 8:13
mehdi rahimzade9-May-09 8:13 
GeneralRe: send and recieve data with modem Pin
Colin Angus Mackay9-May-09 13:03
Colin Angus Mackay9-May-09 13:03 
AnswerRe: send and recieve data with modem Pin
mehdi rahimzade9-May-09 9:46
mehdi rahimzade9-May-09 9:46 
GeneralRe: send and recieve data with modem Pin
Christian Graus9-May-09 11:12
protectorChristian Graus9-May-09 11:12 
AnswerRe: send and recieve data with modem Pin
OriginalGriff9-May-09 22:52
mveOriginalGriff9-May-09 22:52 
Question[Message Deleted] Pin
hkjghkj19-May-09 4:02
hkjghkj19-May-09 4:02 
AnswerRe: ToolTip Pin
Henry Minute9-May-09 7:07
Henry Minute9-May-09 7:07 
Question[Message Deleted] Pin
jas0n239-May-09 3:13
jas0n239-May-09 3:13 
AnswerRe: "Jay's TextPad is not a valid Win32 Application..." But Jay thinks it is... PinPopular
PIEBALDconsult9-May-09 4:24
mvePIEBALDconsult9-May-09 4:24 

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.