Re: variable length arguments

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



hey Cindy, i tried placing the 'firstButton.Visible = true' in the code, but
still, the button is not being displayed as soon as excel startsup.

This thing has been persistent for many days now and am not able to find out
what I am missing.

Any valuable suggestions are considered very thankful

Regards,
na_ab

"Cindy M." wrote:

How about if you explicitly set
firstButton.Visible = true;

catch ( Exception )
{
firstButton =
(CommandBarButton)commandBar.Controls.Add(MsoControlType.msoControlButton,
Type.Missing,Type.Missing, Type.Missing, Type.Missing);
firstButton.Caption = "GUIDE";
firstButton.FaceId = 86;
firstButton.Click +=
new _CommandBarButtonEvents_ClickEventHandler(ButtonClick);
}


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


.


Quantcast