Solved

About creating ActiveX control through subclassing

Posted on 2000-03-12
1
238 Views
Last Modified: 2013-11-20
When creating activeX control through subclassing, how to generate keypress/keydown/keyup events and make them known to application in vb? And how to subclass a non-common control?
0
Comment
Question by:ycl
1 Comment
 
LVL 1

Accepted Solution

by:
kkarunakar earned 50 total points
Comment Utility
Hi there,
I am giving u some help. hope it will work.
Adding keypress/keydown/keyup..events.
Open class wizard.Select ctrl class and map the specified function..Write u r own code in the events.
How to make it visible this to VB.
Just add method to the interface by selecting it and right clicking..
Say OnKeyDown() is method u have added .
now call u r event handler function in this method in ctrl class.
For subclassing u have to write ur own class and write it in the paint..or create in control class in same rect.
Regards keshav
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now