By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,192 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,192 IT Pros & Developers. It's quick & easy.

Browser Extension button disabled after first use?

P: n/a
I have added a button to IE backed by a COM object using C#. Iam
able to achieve the required functionality on the click of the button.
However, I am unable to click the button again, i.e., my toolbar button
gets disabled and grayed out. I have implemented
IOleCommandTarget::QueryStatus implementation method as follows:

public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, IntPtr
prgCmds, IntPtr pCmdText)
OLECMD ocmd;
bool temp= true;
return 0;

public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdExecOpt,
object[] pvaIn, object[] pvaOut)
Speak();//This function works fine;actually the text on the web page
is read out here!
return 0;

Since the button is disabled after first use, iam not able to use it
for any other links from this page.Please somebody giude me where iam

Thanks and Regards,

Mar 31 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.