Calling a System Calculator using hot keys

Posted on 2003-03-12
Medium Priority
Last Modified: 2010-04-17
hi experts,
           i was in need of VB 6.0 coding for the accessing the calculator(system) when we press hot keys such as ctl- c, alt -c.
Thanz in Advance.
Question by:arumugaganesh
1 Comment
LVL 27

Accepted Solution

Dabas earned 375 total points
ID: 8118794
1) Set the KeyPreview property of the form to True

2) Enter the following code:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyC And (Shift = vbCtrlMask Or Shift = vbAltMask) Then
        Shell "Calc.exe"
    End If
End Sub




Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Screencast - Getting to Know the Pipeline

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question