Windows 10: RectangleF.Width has different values in local and Remote desktop in c# windows forms

Discus and support RectangleF.Width has different values in local and Remote desktop in c# windows forms in Windows 10 BSOD Crashes and Debugging to solve the problem; RectangleF.Width is giving different values in physical login and remote desktop login. This issue is observed with Windows 10 [ATTACH][ATTACH]... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by M V Sreedhar, Sep 11, 2019.

  1. RectangleF.Width has different values in local and Remote desktop in c# windows forms


    • RectangleF.Width is giving different values in physical login and remote desktop login.
    • This issue is observed with Windows 10

    RectangleF.Width has different values in local and Remote desktop in c# windows forms 581e69f5-c070-43b2-a8f0-827ee0b26579?upload=true.png RectangleF.Width has different values in local and Remote desktop in c# windows forms 13800881-18e0-4969-9fbf-cf03fc447ab1?upload=true.png


    Code snippet used in the sample is below


    private void button1_Click(object sender, EventArgs e)
    {
    using (
    var stringFormat = new StringFormat(StringFormatFlags.MeasureTrailingSpaces))
    {
    string text;
    RectangleF textRectangle;
    Region[] regions;
    using (
    Graphics graphics = textBox1.CreateGraphics())
    {
    text = textBox1.
    Text;
    Font font = textBox1.Font;

    textRectangle =
    new RectangleF(0, 0, int.MaxValue, int.MaxValue);

    CharacterRange[] characterRanges = { new CharacterRange(0, text.Length) };

    stringFormat.
    SetMeasurableCharacterRanges(characterRanges);

    regions = graphics.
    MeasureCharacterRanges(text, font, textRectangle, stringFormat);

    textRectangle = regions[
    0].GetBounds(graphics);
    }

    foreach (Region region in regions)
    {
    region.
    Dispose();
    }

    richTextBox1.
    Clear();

    richTextBox1.
    AppendText($"Text : {text}" + Environment.NewLine + "RectangleF Properties:"+ Environment.NewLine);
    richTextBox1.
    AppendText($"RectangleF.X : {textRectangle.X}" + Environment.NewLine);
    richTextBox1.
    AppendText($"RectangleF.Y : {textRectangle.Y}" + Environment.NewLine);
    richTextBox1.
    AppendText($"RectangleF.Height : {textRectangle.Height}" + Environment.NewLine);
    richTextBox1.
    AppendText($"RectangleF.Width : {textRectangle.Width}" + Environment.NewLine);
    richTextBox1.
    AppendText($"RectangleF.Right : {textRectangle.Right}" + Environment.NewLine);

    }
    }


    :)
     
    M V Sreedhar, Sep 11, 2019
    #1

  2. Remote Desktop

    Okay guys need some help here before going crazy...
    I am trying to setup a remote desktop connection and see exactly what the logged on user is looking at with out going through Windows Remote Desktop.

    Since its local network I don't have any password or want to setup a password.

    Any suggestions are appreciated
     
    kikicoco1334, Sep 11, 2019
    #2
  3. Windows 10 - Remote Desktop

    Hi,

    We will surely assist you with the issue you are facing with Windows 10.
    - Which version of Windows 10 Operating System are you using?

    - Were you able to upgrade to Windows 10 successfully?

    I suggest you to refer the below steps and see if this helps.


    • Enable remote desktop in settings
      • Control Panel\System and Security\System, Click "Remote Settings" on the left side

    • Verify my port forwarding settings were properly forwarding to my computers local IP address
      • run "cmd.exe" and then type "ipconfig". Find your IP from that list
    [*]
    • Make sure your firewall settings are open
    • Go to "Control Panel\System and Security\Windows Firewall\Allowed apps"
    • On the left, click "Allow an app or feature through Windows Firewall"
    • Click "Change Settings"
    • Find "Remote Desktop" in the list and make sure both "Private" and "Public" is checked.

    Let us know if this helps.

    Thank you.

    Credits to : Jace_Sango.
     
    Akheel Ahmed, Sep 11, 2019
    #3
  4. RectangleF.Width has different values in local and Remote desktop in c# windows forms

    remote desktop connection

    You will need to analyse the various stages that form part of the remote desktop connection. This will require some time and patience.

    A remote desktop connection consists of these components:

    • A host (which must run Windows Professional). This is the machine that you wish to control.
    • A client (which can run any version of Windows). This is the machine that you work on.
    • A link that connects the client with the host.
    Is the host on the same network as the client or is it on a different network?
     
    Frederik Long, Sep 11, 2019
    #4
Thema:

RectangleF.Width has different values in local and Remote desktop in c# windows forms

Loading...
  1. RectangleF.Width has different values in local and Remote desktop in c# windows forms - Similar Threads - RectangleF Width has

  2. Reduce Desktop Display Width

    in Windows 10 Customization
    Reduce Desktop Display Width: I have an extra wide monitor so watching videos in widescreen does not take up all of the screen. The issue I have is that the left 1-1/4" of my 31" wide screen is real blurry (maybe from screen cleaner?). When I right click OR left click on Start I have to make my selections...
  3. Different Scaling while using Remote Desktop Connection

    in Windows 10 Customization
    Different Scaling while using Remote Desktop Connection: I am visually impaired, and because of this I use different scaling options then most other people. I have my screen resolution set to recommended at 2560 x 1440 with my scaling set to 150% I have messed with these settings for a while and have found that this works best for...
  4. Region.GetBounds(Graphics) has different values in local and Remote desktop in c# windows forms

    in Windows 10 BSOD Crashes and Debugging
    Region.GetBounds(Graphics) has different values in local and Remote desktop in c# windows forms: Regions.GetBounds(Graphics) is giving different values of Width in physical login and remote desktop login. This issue is observed with Windows 10 [ATTACH][ATTACH] Code snippet used in the sample is below private void button1_Click(object sender, EventArgs e) {...
  5. Remote Desktop - Accessing Local Resources

    in Windows 10 Customization
    Remote Desktop - Accessing Local Resources: I would like to make local devices connected to my laptop (i.e. HP scanner) accessible in my Remote Desktop Connection. I am running WIN10 Pro. I cannot locate the Remote Desktop Connections dialogue box that would allow me to specify which Local Resources I want to...
  6. Remote Desktop

    in Windows 10 Network and Sharing
    Remote Desktop: Do you need to have a static IP address if you want to remote desktop to a computer? Both PCs are running Windows 10 Pro. Thanks https://answers.microsoft.com/en-us/windows/forum/all/remote-desktop/82cf8ced-88b0-469e-8431-8fa3ef5c30b0
  7. Remote Desktop Connection "An internal error has occured" when try to connect to a local...

    in Windows 10 BSOD Crashes and Debugging
    Remote Desktop Connection "An internal error has occured" when try to connect to a local...: Hi Support, Recently I have faced with an error when try to connect to a local server using remote desktop. This issue occurs when I have updates my windows 10 with a new updates. Kindly assist on how to solve this issues. [ATTACH]...
  8. remote desktop

    in Windows 10 Customization
    remote desktop: My remote desktop app no longer allows me to connect to my vpn, what can I do? https://answers.microsoft.com/en-us/windows/forum/all/remote-desktop/1bcb3693-7dcc-492f-a182-b6d85d7a7a83
  9. remote desktop

    in Windows 10 Customization
    remote desktop: My remote desktop app no longer allows me to connect to my vpn, what can I do? https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/remote-desktop/1bcb3693-7dcc-492f-a182-b6d85d7a7a83
  10. Remote Desktop

    in Windows 10 Network and Sharing
    Remote Desktop: Remote Desktop Error After providing the Microsoft Account Password to the Password blank on remote desktop the attempts to connect and then request the Password again. The Password I provided was the same a the Password provided at Windows startup but for some reason it...