title: Font resolution suddenly change
body: <p>I recently experienced a wierd behavior of a old VB.NET WinForm code. The code is working well and produce a correct design of my forms. I added a function to call an API. I added a new reference with my proxies to the code. </p>
  
  <pre><code>   If ApiHelper.Login(Username, Password) Then
         Application.Run(myForm)
     End If
  </code></pre>
  
  <p>Here is my API helper class:</p>
  
  <pre><code>Public Class ApiHelper
  
  Public Shared Function Login(username As String, password As String) As Boolean
      DataProxies.SetToken()
      Dim _authService As IAuthenticationService = New AuthenticationService()
      Dim auth As Tuple(Of Boolean, User) = _authService.Login(username, password).Result
      If (auth.Item1) Then
          Dim user As User = auth.Item2
          Name = $"{user.FirstName} {user.LastName}"
          ApiInformations.ApiToken = user.SessionToken
      End If
      Return True
  End Function
  End Class
  </code></pre>
  
  <p>When I run myForm all my fonts are modified. some become bigger, some seems smaller. But this is maybe an effect of resolution change of my main form.</p>
  
  <p><a href="https://i.stack.imgur.com/ASbsy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ASbsy.png" alt="enter image description here"></a></p>
  
  <p>This is wierd because before using the API to login or id I simply bypass the login like this</p>
  
  <pre><code>   'If ApiHelper.Login(Username, Password) Then
         Application.Run(myForm)
     'End If
  </code></pre>
  
  <p>I get a perfect result with all correct size on my form.</p>
  
  <p><a href="https://i.stack.imgur.com/rAWYF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rAWYF.png" alt="enter image description here"></a></p>
  
  <p>How a code that use nothing related to design and form (but async await) can affect the designer of my form? </p>
  
  <p>Also my settings are</p>
  
  <p><a href="https://i.imgur.com/Lu26vIR.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/Lu26vIR.png" alt="enter image description here"></a></p>