Results 1 to 11 of 11

Thread: (VB6) Add-In to change the default font of new forms

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    (VB6) Add-In to change the default font of new forms

    It changes the default font from 'MS Sans Serif' to other font of new Forms, UserControls and PropertyPages that are added to the project.

    You can configure the font that you want, the default one is Segoe UI 9.

    Name:  def.font-config.png
Views: 314
Size:  3.7 KB

    Download from GitHub

    Note: To change the fonts of existent forms, you can use the add-in Project Examiner.
    Last edited by Eduardo-; Apr 4th, 2021 at 12:48 AM.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Updated.

    Important bug fix. When adding a project to a group in some circumstance it could not access the designer and caused an error.
    Last edited by Eduardo-; Apr 24th, 2021 at 12:50 AM.

  3. #3
    Member
    Join Date
    Aug 2020
    Location
    Victoria Texas 77904
    Posts
    32

    Re: (VB6) Add-In to change the default font of new forms

    Since I went to Win10 I've never been able to make add-ins work with vb6. This one looks like a good one to have.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Quote Originally Posted by KFrosty View Post
    Since I went to Win10 I've never been able to make add-ins work with vb6. This one looks like a good one to have.
    What problem did you have?

    Open the IDE with admin rights, then open the add-in project, compile the dll, close the IDE, and that should be all you need to do.
    Now open the IDE again, and the add-in should be already working.

  5. #5
    Fanatic Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    907

    Re: (VB6) Add-In to change the default font of new forms

    I have exactly that functionality in ALL my forms in all my projects. I never imagined others might find it useful too. I should have thought in a more lateral fashion.

    I haven't used any of your code as I had previously rolled my own. I have always believed it is up to the program user himself as to which font is best and not just to pick up the default system font that might be completely inappropriate for the individual app. Some users don't even have the opportunity to change items such as the system font.

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Could you please make more clear what you are saying?
    Last edited by Eduardo-; Apr 24th, 2021 at 01:15 PM.

  7. #7
    Member
    Join Date
    Aug 2020
    Location
    Victoria Texas 77904
    Posts
    32

    Re: (VB6) Add-In to change the default font of new forms

    Quote Originally Posted by Eduardo- View Post
    What problem did you have?

    Open the IDE with admin rights, then open the add-in project, compile the dll, close the IDE, and that should be all you need to do.
    Now open the IDE again, and the add-in should be already working.
    As par, I get a Fail to access registry error. I'm sure it has something to do with my install of VB6 into Win10. But I can live with it. Thanks of the info though.

  8. #8
    Fanatic Member
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    907

    Re: (VB6) Add-In to change the default font of new forms

    Quote Originally Posted by Eduardo- View Post
    Could you please make more clear what you are saying?
    I was implying that your code is very useful and it was a good idea to publish it as you have done.

  9. #9

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Quote Originally Posted by yereverluvinuncleber View Post
    I was implying that your code is very useful and it was a good idea to publish it as you have done.
    This add-in has nothing to do with allowing the user to change the font, not to use a system font. Just to clear it so the developers coming to the thread don't get confused.

    I never used any code published by you either. You must have lot of code that you are hiding.
    Last edited by Eduardo-; Apr 25th, 2021 at 08:24 AM.

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Quote Originally Posted by KFrosty View Post
    As par, I get a Fail to access registry error. I'm sure it has something to do with my install of VB6 into Win10. But I can live with it. Thanks of the info though.
    You can try by registering the dll that is in the bin folder:

    In an elevated cmd:
    Regsvr32 "[Path of dll]"

  11. #11

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,207

    Re: (VB6) Add-In to change the default font of new forms

    Updated.
    Bug fixed.

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