Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1004625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:09:47+00:00 2026-05-16T08:09:47+00:00

My VB6 project requires keyboard short-cuts for toolbar control in its MDI Form. For

  • 0

My VB6 project requires keyboard short-cuts for toolbar control in its MDI Form. For this, I used vbAccelerator Keyboard Hook with vbalHook6.dll found at vbAccelerator Hooks (thanks to Alex K for this suggestion), I’m getting Runtime Error ‘429’, i.e. ActiveX Object Can’t be created. I’ve referenced the required DLL with the project and also tried to register the dll with Windows using Registry Server utility (regsvr32) but it fails to register with error code 0x80004005. I looked at ActiveX Can’t Create Object – vbAccelerator which specifically explains reasons for this type of error & its solution, but it didn’t worked for me. The project supplied with Keyboard Hook DLL runs fine in my computer, but not with my project. Please help me out…………… 😐 Thanks……….

[Update]

Again with help of Alex K, I’ve successfully registered all required DLLs….

But, something has again gone wrong….

Here’s code of my IWindowsHook_HookProc method to get key combinations that I want as short-cuts in my application. What’s wrong with the code below that crashes VB along with my app if any key is pressed..?

I also want to include short-cuts for Save (Ctrl+s) and Open (Ctrl+O), how I can form chained condition to identify particular key combination…?

Private Function IWindowsHook_HookProc(ByVal eType As EHTHookTypeConstants, ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long, bConsume As Boolean) As Long
If KeyboardlParam(lParam).KeyDown Then
    Select Case True
        Case Me.ActiveControl = Me
            If wParam = vbKeyControl + vbKeyN Then
                frmNewReport.show
                bConsume = True
            End If
    End Select
End If

End Function

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:09:48+00:00Added an answer on May 16, 2026 at 8:09 am

    Its a UAC/Permissions error; If your on vista/win7 right click the command prompt icon, choose “run as administrator” then regsvr32 c:\whatever\xxxx.dll.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my VB6 project, I'm using only Toolbar Control in main MDI From (Not
I've inherited a VB6 project that has a Form with VB controls (Label, etc)
I have a ListBox on my vb6 project and I've set its property to
I have a VB6 project (using Visual Studio 6) and I'm trying to distribute
I have a VB6 project in Visual Source Safe 6.0. When I open the
Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have
I have quite a large VB6 project, with many forms, classes, modules and user
i`m working on the legacy project in VB6 with huge object all with public
Right now we are maintaining some old project written in VB6 we are planning
We have a VB6 project that compiles to an ActiveX EXE that happens to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.