Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
435 B

  1. Attribute VB_Name = "LCIDFont"
  2. Option Explicit
  3. Public Sub SetFont(i_frm As Form, i_fnt As StdFont, i_fntColor As Long)
  4. On Error Resume Next
  5. If (i_fnt Is Nothing) Then
  6. Exit Sub
  7. End If
  8. Dim Ctrl As Control
  9. For Each Ctrl In i_frm.Controls
  10. If (Ctrl.Tag = 1) Then
  11. Set Ctrl.Font = i_fnt
  12. Ctrl.ForeColor = i_fntColor
  13. End If
  14. Next
  15. End Sub