close

當使用者在顯示中選取標準字型、大型字型與超大型字型時 

導致我們的控制項字型也跟者變化 

這時需要靠判斷來對字型調整 判斷如下 

Dim dpi As Integer = CType(Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Control Panel\Desktop\WindowMetrics").GetValue("AppliedDPI"), Integer) 

dpi 為取得該字型的解析度 96為標準字型 往上就推算

arrow
arrow
    文章標籤
    VB.NET 字型 大型
    全站熱搜

    cmdunlop 發表在 痞客邦 留言(0) 人氣()