Click here to Skip to main content
16,012,223 members
Home / Discussions / COM
   

COM

 
Questionshell drag and drop between namespace extension and windows Pin
sathink8-Nov-06 5:05
sathink8-Nov-06 5:05 
QuestionUsing Interface type from the imported TLB (Attributed COM) Pin
arun14058-Nov-06 0:50
arun14058-Nov-06 0:50 
QuestionWindows Server clustering using WMI Pin
abhiramsss7-Nov-06 14:24
abhiramsss7-Nov-06 14:24 
QuestionVery Urgent : How to list all the registered assesmblies Pin
kamal k s chauhan6-Nov-06 22:18
kamal k s chauhan6-Nov-06 22:18 
AnswerRe: Very Urgent : How to list all the registered assesmblies Pin
Jonathan [Darka]8-Nov-06 0:33
professionalJonathan [Darka]8-Nov-06 0:33 
QuestionHow to list all the registered assesmblies Pin
kamal k s chauhan6-Nov-06 22:17
kamal k s chauhan6-Nov-06 22:17 
QuestionCOM+ help me Pin
AnhTin6-Nov-06 16:47
AnhTin6-Nov-06 16:47 
QuestionTwo questions on COM Add-in for Outlook Pin
OctopusThu6-Nov-06 6:47
OctopusThu6-Nov-06 6:47 
I developed an Add-in for Outlook 2003 with Visual Studio 2005 Team Suite.
My solution was created via:
Other Project Types -> Extensibility -> Shared Add-in
And I selected support for Microsoft Outlook.

Question 1:
I uncheched all the "Exclude" option of the assemblies in the Setup Project and builded it successfully.
The Add-in installed and ran well in another computer which had also VS 2005 Team Suite on it. However, on a third computer, which only had .NET Framework 2.0 but not VS 2005, the Add-in installed normally but did not load when Outlook started. What's the problem?

Question 2:
My CommandBarButton runs only a few times.

I added a CommandBarPopup to the Main Menu and then added a MsoControlType.msoControlButton to the popup. In the ClickEventHandler of the button, a Windows Form object is created and shown.

The problem is, each time I start Outlook, the button is available for only a few times, usually 2-3 times, sometimes only once. Afterwards it becomes unavailable at all. It gives no response when I click it.

Some of the codes are as follows:

//Acquire the "Menu Bar" and create a new control on it
menuBar = ((Outlook.Application)applicationObject).ActiveExplorer().CommandBars["Menu Bar"];
commandBarControl_CM = menuBar.Controls.Add(MsoControlType.msoControlPopup, 1, "", 6, true);
commandBarControl_CM.Visible = true;
commandBarControl_CM.Caption = "Sychronization";

//Add buttons to the newly created control
CommandBarPopup commandBarPopup_CM = (CommandBarPopup)commandBarControl_CM;
CommandBarControl commandBarControl_SI = commandBarPopup_CM.CommandBar.Controls.Add(
MsoControlType.msoControlButton, 1, "", 1, true);
commandBarControl_SI.Visible = true;
commandBarControl_SI.Caption = "Calendar Sychronization";

//Add button event handlers
CommandBarButton button_showinfo = (CommandBarButton)commandBarControl_SI;
button_showinfo.Click += new _CommandBarButtonEvents_ClickEventHandler(button_showinfo_Click);

private void button_showinfo_Click(CommandBarButton Ctrl, ref Boolean CancelDefault)
{
System.Windows.Forms.Form form_CalMng = new Form_CalMng();
form_CalMng.Show();
}


AnswerRe: Two questions on COM Add-in for Outlook Pin
OctopusThu6-Nov-06 15:39
OctopusThu6-Nov-06 15:39 
QuestionRe: Two questions on COM Add-in for Outlook Pin
prasad_som6-Nov-06 18:54
prasad_som6-Nov-06 18:54 
GeneralRe: Two questions on COM Add-in for Outlook Pin
OctopusThu6-Nov-06 19:51
OctopusThu6-Nov-06 19:51 
AnswerRe: Two questions on COM Add-in for Outlook Pin
prasad_som6-Nov-06 19:57
prasad_som6-Nov-06 19:57 
GeneralRe: Two questions on COM Add-in for Outlook Pin
OctopusThu6-Nov-06 20:16
OctopusThu6-Nov-06 20:16 
GeneralRe: Two questions on COM Add-in for Outlook Pin
prasad_som6-Nov-06 20:21
prasad_som6-Nov-06 20:21 
AnswerRe: Two questions on COM Add-in for Outlook Pin
OctopusThu8-Nov-06 17:41
OctopusThu8-Nov-06 17:41 
QuestionHelp! About COM,(the server of the EXE) Pin
kcynic5-Nov-06 12:27
kcynic5-Nov-06 12:27 
AnswerRe: Help! About COM,(the server of the EXE) Pin
Jonathan [Darka]8-Nov-06 0:35
professionalJonathan [Darka]8-Nov-06 0:35 
QuestionASP.NET Ajax Page Caching Pin
K.P.Kannan4-Nov-06 14:25
K.P.Kannan4-Nov-06 14:25 
QuestionMy COM method call is killing my App Pin
earlgraham2-Nov-06 7:03
earlgraham2-Nov-06 7:03 
AnswerRe: My COM method call is killing my App Pin
Stephen Hewitt5-Nov-06 14:02
Stephen Hewitt5-Nov-06 14:02 
GeneralRe: My COM method call is killing my App Pin
earlgraham9-Nov-06 4:41
earlgraham9-Nov-06 4:41 
QuestionAccessing a C# control from C++ Pin
Metabug30-Oct-06 9:29
Metabug30-Oct-06 9:29 
Questionhow to access a COM component from ASP.net? Pin
voorugonda prashanth29-Oct-06 23:18
voorugonda prashanth29-Oct-06 23:18 
GeneralRe: how to access a COM component from ASP.net? Pin
prasad_som7-Nov-06 18:35
prasad_som7-Nov-06 18:35 
QuestionWhy the Release() don't call the class destructor? Pin
AIMrus28-Oct-06 23:56
AIMrus28-Oct-06 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.