Solved

About creating ActiveX control through subclassing

Posted on 2000-03-12
1
243 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 121
Whole sheet autoscrub still needed 19 55
how to monitor remote shell execution on linux 9 113
Use of condition with 'serial' in ansible 2 103
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

752 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