how to fix large fonts(120dpi) in VS2003?
-
Hi I have a windows application where I have programmed and designed my forms in normal(96dpi). The problem is that some of the users are changing their settings to large font(120dpi) and it is causing the text in the forms to enlarge and it is therefore screwing up the design/look of the pages. I have been able to search online to find some code that is available in VS2005, but I am using VS2003 and it does not seem to have the systemfont class required for those solutions. Does anyone know of how I can implement those solutions or if they know of where/how I can solve this issue? thank you eg code:
Imports Microsoft.Win32 Public Class Form1 Public Sub New() ' This call is required by the Windows Form Designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. AddHandler SystemEvents.UserPreferenceChanged, New UserPreferenceChangedEventHandler(AddressOf SystemEvents_UserPreferenceChangesEventHandler) End Sub Private Sub SystemEvents_UserPreferenceChangesEventHandler(ByVal sender As Object, ByVal e As UserPreferenceChangedEventArgs) If (e.Category = UserPreferenceCategory.Window) Then Me.Font = SystemFonts.IconTitleFont End If End Sub Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing RemoveHandler SystemEvents.UserPreferenceChanged, New UserPreferenceChangedEventHandler(AddressOf SystemEvents_UserPreferenceChangesEventHandler) End Sub End Class
eatwork