Click here to Skip to main content
15,867,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff13-Dec-14 0:59
professionalBillWoodruff13-Dec-14 0:59 
Questionthread Safe Pin
Member 1082714012-Dec-14 20:56
Member 1082714012-Dec-14 20:56 
AnswerRe: thread Safe Pin
Richard MacCutchan12-Dec-14 22:08
mveRichard MacCutchan12-Dec-14 22:08 
QuestionWindows form controls reposition when DPI changes Pin
robwm112-Dec-14 11:42
robwm112-Dec-14 11:42 
AnswerRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen12-Dec-14 14:06
professionalEddy Vluggen12-Dec-14 14:06 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm115-Dec-14 7:56
robwm115-Dec-14 7:56 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 0:28
professionalEddy Vluggen16-Dec-14 0:28 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 5:42
robwm116-Dec-14 5:42 
After experimenting with the Anchor property, I have most of the form looking alright after making changes. I don't think the Dock property is going to work for this project. It seems like the labels will need to be manipulated at runtime.

Here is a link to screenshots of the different DPI states:
Screenshots with different DPI settings applied

The top screenshot is how I want it to look across any of the default Windows DPI settings if that is possible.

This is how the Anchor property is configured for each of the controls.

Image upper left - Anchor = Top, Left
Title label upper right - Anchor = Top, Right
Enter Credentials label - Anchor = Top, Left
First Name label - Anchor = Top, Left
First Name textbox - Anchor = Top, Right
Last Name label - Anchor = Top, Left
Last Name textbox - Anchor = Top, Right
Username label - Anchor = Top, Left
Username textbox - Anchor = Top, Right
Abort button - Anchor = Bottom, Right
Backup button - Anchor = Bottom, Right

Any other suggestions as to how to make this work properly?

I'm thinking at this point that I should get the current DPI setting and if it's greater than 96 dpi then move the x-coordinate of the labels.

modified 16-Dec-14 11:59am.

GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 5:58
professionalEddy Vluggen16-Dec-14 5:58 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 6:59
robwm116-Dec-14 6:59 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 7:33
professionalEddy Vluggen16-Dec-14 7:33 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 7:39
robwm116-Dec-14 7:39 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm116-Dec-14 11:46
robwm116-Dec-14 11:46 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen17-Dec-14 0:27
professionalEddy Vluggen17-Dec-14 0:27 
QuestionBitmap Dispose Pin
V.12-Dec-14 2:26
professionalV.12-Dec-14 2:26 
AnswerRe: Bitmap Dispose Pin
Marc Clifton12-Dec-14 3:11
mvaMarc Clifton12-Dec-14 3:11 
AnswerRe: Bitmap Dispose Pin
OriginalGriff12-Dec-14 3:55
mveOriginalGriff12-Dec-14 3:55 
AnswerRe: Bitmap Dispose Pin
Richard Andrew x6412-Dec-14 7:20
professionalRichard Andrew x6412-Dec-14 7:20 
GeneralRe: Bitmap Dispose Pin
OriginalGriff12-Dec-14 8:14
mveOriginalGriff12-Dec-14 8:14 
GeneralRe: Bitmap Dispose Pin
Richard Andrew x6412-Dec-14 8:16
professionalRichard Andrew x6412-Dec-14 8:16 
QuestionRe: Bitmap Dispose Pin
Richard Andrew x6412-Dec-14 8:31
professionalRichard Andrew x6412-Dec-14 8:31 
AnswerRe: Bitmap Dispose Pin
OriginalGriff13-Dec-14 0:19
mveOriginalGriff13-Dec-14 0:19 
GeneralRe: Bitmap Dispose Pin
Richard Deeming15-Dec-14 2:15
mveRichard Deeming15-Dec-14 2:15 
GeneralRe: Bitmap Dispose Pin
OriginalGriff15-Dec-14 2:27
mveOriginalGriff15-Dec-14 2:27 
GeneralRe: Bitmap Dispose Pin
Richard Deeming12-Dec-14 8:56
mveRichard Deeming12-Dec-14 8:56 

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.