Dear Sir
I have an error `Error BC30519 Overload resolution failed because no accessible 'Truncate' can be called without a narrowing conversion:`
Please Guide me
Thanks
<DllImport("user32.dll")>
Friend Shared Function GetWindowDpiAwarenessContext(ByVal hWnd As IntPtr) As IntPtr
End Function
processDpiAwareness = GetDpiState(CUInt(System.Diagnostics.Process.GetCurrentProcess().Id))
If processDpiAwareness = PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE Then
Try
'`Error below line code`
Dim ret = CInt(Math.Truncate(GetWindowDpiAwarenessContext(Handle)))
If ret = 34 Then ' DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2
isPerMonitorAwareV2 = True
End If
Catch
End Try
End If