Click here to Skip to main content
14,111,188 members
   

C#

 
GeneralRe: Using the Black Box method in C# Pin
OriginalGriff5-Mar-19 0:04
protectorOriginalGriff5-Mar-19 0:04 
GeneralRe: Using the Black Box method in C# Pin
Brian_TheLion5-Mar-19 11:47
memberBrian_TheLion5-Mar-19 11:47 
AnswerRe: Using the Black Box method in C# Pin
Gerry Schmitz5-Mar-19 8:10
mveGerry Schmitz5-Mar-19 8:10 
GeneralRe: Using the Black Box method in C# Pin
Brian_TheLion5-Mar-19 11:45
memberBrian_TheLion5-Mar-19 11:45 
GeneralRe: Using the Black Box method in C# Pin
Gerry Schmitz6-Mar-19 4:13
mveGerry Schmitz6-Mar-19 4:13 
GeneralRe: Using the Black Box method in C# Pin
Brian_TheLion6-Mar-19 11:32
memberBrian_TheLion6-Mar-19 11:32 
Questionc#, winforms, moving the app to another monitor and updating the screen device name Pin
jkirkerx4-Mar-19 7:01
professionaljkirkerx4-Mar-19 7:01 
AnswerRe: c#, winforms, moving the app to another monitor and updating the screen device name Pin
jkirkerx4-Mar-19 7:15
professionaljkirkerx4-Mar-19 7:15 
Maybe my issue is a flawed thought in how I calculate this. I used the device name because I wasn't able to do the math on the primary monitor.
public ProgressDialog()
{
    InitializeComponent();

    // Add any initialization after the InitializeComponent() call.
    this.AutoScaleMode = AutoScaleMode.Dpi;
    this.AutoSize = true;

    // This needs more work, when you move the display, the Screen doesn't update
    Screen myMonitor = Screen.FromControl(MainForm);
    this.StartPosition = FormStartPosition.Manual;
    this.Top = (myMonitor.WorkingArea.Height / (double)2) - (this.Height / (double)2);
    if ((myMonitor.DeviceName.Contains("DISPLAY1")))
        this.Left = myMonitor.WorkingArea.Width / (double)2 - (this.Width / (double)2);
    else
        this.Left = myMonitor.WorkingArea.Right - (myMonitor.WorkingArea.Width / (double)2) - (this.Width / (double)2);

    Console.Write("Stop");
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

GeneralHow to center a progress bar dialog across multiple monitors Pin
jkirkerx4-Mar-19 9:44
professionaljkirkerx4-Mar-19 9:44 
AnswerRe: c#, winforms, moving the app to another monitor and updating the screen device name Pin
Gerry Schmitz5-Mar-19 8:24
mveGerry Schmitz5-Mar-19 8:24 
GeneralRe: c#, winforms, moving the app to another monitor and updating the screen device name Pin
jkirkerx5-Mar-19 10:37
professionaljkirkerx5-Mar-19 10:37 
QuestionPlease tell me what is wrong with this simple C# program Pin
Brian_TheLion3-Mar-19 23:20
memberBrian_TheLion3-Mar-19 23:20 
AnswerRe: Please tell me what is wrong with this simple C# program Pin
OriginalGriff3-Mar-19 23:46
protectorOriginalGriff3-Mar-19 23:46 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Brian_TheLion4-Mar-19 0:02
memberBrian_TheLion4-Mar-19 0:02 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
OriginalGriff4-Mar-19 0:05
protectorOriginalGriff4-Mar-19 0:05 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Brian_TheLion4-Mar-19 0:37
memberBrian_TheLion4-Mar-19 0:37 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Richard MacCutchan4-Mar-19 0:41
protectorRichard MacCutchan4-Mar-19 0:41 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Richard MacCutchan4-Mar-19 0:43
protectorRichard MacCutchan4-Mar-19 0:43 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Brian_TheLion4-Mar-19 1:05
memberBrian_TheLion4-Mar-19 1:05 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
Brian_TheLion4-Mar-19 0:41
memberBrian_TheLion4-Mar-19 0:41 
GeneralRe: Please tell me what is wrong with this simple C# program Pin
OriginalGriff4-Mar-19 0:47
protectorOriginalGriff4-Mar-19 0:47 
QuestionWhat is free alternative to microsoft bot framework? Pin
Nitin Sawant3-Mar-19 21:14
professionalNitin Sawant3-Mar-19 21:14 
AnswerRe: What is free alternative to microsoft bot framework? Pin
Richard MacCutchan3-Mar-19 21:46
protectorRichard MacCutchan3-Mar-19 21:46 
AnswerRe: What is free alternative to microsoft bot framework? Pin
Eddy Vluggen4-Mar-19 0:36
mveEddy Vluggen4-Mar-19 0:36 
QuestionC# Code converted from Java gives error using in Script Task in SSIS Pin
Member 141699203-Mar-19 18:42
memberMember 141699203-Mar-19 18:42 

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.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190518.1 | Last Updated 20 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid