Link to home
Start Free TrialLog in
Avatar of Martin Liss
Martin LissFlag for United States of America

asked on

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.
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

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 .
Avatar of Martin Liss

ASKER

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.
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.
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.)
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Too difficult