CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Location
    Ontario, Canada
    Posts
    21

    change fonts for all items

    need help..

    i need a code or function that changes all the fonts size and name.... on all items including grids




    thanks is advance
    luel


    Life is full of treachery and lies...

  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: change fonts for all items

    Use a For ... Each loop in your Form Load as follows:


    dim aControl as Control
    on error resume next
    for each aControl in me.Controls
    aControl.Font.Size = 12
    next
    on error Goto 0





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured