Click here to Skip to main content
16,016,770 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create the same but in windows form C# Pin
OriginalGriff25-Jun-21 6:23
mveOriginalGriff25-Jun-21 6:23 
QuestionDifficulty adding code to reject non numeric user inputs Pin
Member 1524886723-Jun-21 5:58
Member 1524886723-Jun-21 5:58 
AnswerRe: Difficulty adding code to reject non numeric user inputs Pin
OriginalGriff23-Jun-21 6:08
mveOriginalGriff23-Jun-21 6:08 
GeneralRe: Difficulty adding code to reject non numeric user inputs Pin
Member 1524886723-Jun-21 7:15
Member 1524886723-Jun-21 7:15 
GeneralRe: Difficulty adding code to reject non numeric user inputs Pin
OriginalGriff23-Jun-21 7:32
mveOriginalGriff23-Jun-21 7:32 
GeneralLimitless printing Pin
Member 1419221622-Jun-21 1:21
Member 1419221622-Jun-21 1:21 
GeneralRe: Limitless printing Pin
OriginalGriff22-Jun-21 2:26
mveOriginalGriff22-Jun-21 2:26 
GeneralRe: Limitless printing Pin
jsc4222-Jun-21 3:04
professionaljsc4222-Jun-21 3:04 
Looking at your code with a very limited understanding of the domain, I am wondering if
Member 14192216 wrote:
C#
string deviceInfo =
    @"<DeviceInfo>
        <OutputFormat>EMF</OutputFormat>
        <PageWidth>{pageSettings.PaperSize.Width * 100}in</PageWidth>
        <PageHeight>{pageSettings.PaperSize.Height * 100}in</PageHeight>
        <MarginTop>{pageSettings.Margins.Top * 100}in</MarginTop>
        <MarginLeft>{pageSettings.Margins.Left * 100}in</MarginLeft>
        <MarginRight>{pageSettings.Margins.Right * 100}in</MarginRight>
        <MarginBottom>{pageSettings.Margins.Bottom * 100}in</MarginBottom>
    </DeviceInfo>";
is meant to be an interpolated string. If so, try changing the @"..." to $@"..." so that the expressions inside {...} sections are evaluated. It may be that the uninterpolated values are being treated as invalid number, which are treated a undefined items so the defaults for the geometry are used.
GeneralRe: Limitless printing Pin
Gerry Schmitz22-Jun-21 6:57
mveGerry Schmitz22-Jun-21 6:57 
QuestionC# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
arnold_w21-Jun-21 21:23
arnold_w21-Jun-21 21:23 
AnswerRe: C# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
Gerry Schmitz22-Jun-21 6:43
mveGerry Schmitz22-Jun-21 6:43 
AnswerRe: C# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
BillWoodruff22-Jun-21 19:02
professionalBillWoodruff22-Jun-21 19:02 
GeneralRe: C# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
Gerry Schmitz23-Jun-21 7:26
mveGerry Schmitz23-Jun-21 7:26 
GeneralRe: C# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
BillWoodruff23-Jun-21 23:27
professionalBillWoodruff23-Jun-21 23:27 
GeneralRe: C# graph/diagram showing executing tasks vs time, that scales well with large data sets? Pin
Gerry Schmitz24-Jun-21 6:27
mveGerry Schmitz24-Jun-21 6:27 
QuestionLinking forms Pin
Member 1524886721-Jun-21 12:15
Member 1524886721-Jun-21 12:15 
AnswerRe: Linking forms Pin
Richard Andrew x6421-Jun-21 13:22
professionalRichard Andrew x6421-Jun-21 13:22 
GeneralRe: Linking forms Pin
Member 1524886721-Jun-21 13:31
Member 1524886721-Jun-21 13:31 
GeneralRe: Linking forms Pin
Richard Andrew x6421-Jun-21 13:43
professionalRichard Andrew x6421-Jun-21 13:43 
GeneralRe: Linking forms Pin
Member 1524886721-Jun-21 15:23
Member 1524886721-Jun-21 15:23 
AnswerRe: Linking forms Pin
Gerry Schmitz22-Jun-21 6:32
mveGerry Schmitz22-Jun-21 6:32 
GeneralRe: Linking forms Pin
Member 1524886723-Jun-21 5:14
Member 1524886723-Jun-21 5:14 
QuestionNeed help with straight line depreciation coding Pin
Member 1524886721-Jun-21 8:38
Member 1524886721-Jun-21 8:38 
AnswerRe: Need help with straight line depreciation coding Pin
OriginalGriff21-Jun-21 9:21
mveOriginalGriff21-Jun-21 9:21 
GeneralRe: Need help with straight line depreciation coding Pin
Member 1524886721-Jun-21 9:24
Member 1524886721-Jun-21 9: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.