VB6 Real-Time Add-In

I've written several add-ins for VB6 (and Excel) and I'd like to write one that actively tracks what the user types in the IDE but I don't know if that's possible. For example if someone where to type in "While" I'd like to highlight that word. That's not specifically what I want to do but if someone has an example where the add-in tracks what the user enters in the IDE I can modify it.
LVL 56
Martin LissOlder than dirtAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrahamSkanRetiredCommented:
Hi Martin,
I'm sure that you will have thought of this, but just in case you haven't, I would start with the KeyPress/Down/Up etc events to capture a history of what has been typed into the particular object .
Martin LissOlder than dirtAuthor Commented:
Thanks but I'm not after any kind history. I want to be able to track the code that the user is writing as he types into the IDE so that, for example,  I can do something when he types the ending "e" in "While".

Edit: But I guess that is a kind of history, albeit a short one.
GrahamSkanRetiredCommented:
I realise that I'm playing Devil's advocate, but if you want to track something that is being typed into a particular object, then you should be able to record that in a variable.

Even without, it should be possible to examine the existing text in the object to see if the that plus the incoming  character would be your action trigger.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Martin LissOlder than dirtAuthor Commented:
Sorry but I guess I'm not making myself clear. There's are no objects involved. I'm interested in the code that the programmer is writing. (I probably should have said "programmer" instead of "user" above.)
Martin LissOlder than dirtAuthor Commented:
I've been in contact with the person who literally wrote the book on VB6 add-ins and he advised me it would be too difficult.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GrahamSkanRetiredCommented:
And I have been researching to find a built-in Event that would fire in the IDE design mode, That failed, and there didn't seem to be a feasible way of designing one.
Martin LissOlder than dirtAuthor Commented:
Too difficult
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.