Solved

About creating ActiveX control through subclassing

Posted on 2000-03-12
1
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
kkarunakar earned 50 total points
ID: 2694750
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 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