Maybe this is a bug, though I didn't met this before. Thanks for the reply. Btw, I can tell the thing Line-number addin does when it is being activated: it check from the registry to get the font(both font name and size) of VC6's code editor, and create the font to draw line numbers. maybe I need more debug in this process.