Click here to Skip to main content
15,921,840 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to parse database address Pin
Judah Gabriel Himango6-Nov-06 9:48
sponsorJudah Gabriel Himango6-Nov-06 9:48 
QuestionPOS application Pin
Harikrk6-Nov-06 6:56
Harikrk6-Nov-06 6:56 
AnswerRe: POS application Pin
ednrgc6-Nov-06 9:14
ednrgc6-Nov-06 9:14 
GeneralRe: POS application Pin
Dan Neely6-Nov-06 10:03
Dan Neely6-Nov-06 10:03 
GeneralRe: POS application Pin
ednrgc7-Nov-06 2:18
ednrgc7-Nov-06 2:18 
AnswerRe: POS application Pin
Dan Neely6-Nov-06 10:02
Dan Neely6-Nov-06 10:02 
GeneralRe: POS application Pin
Harikrk7-Nov-06 15:35
Harikrk7-Nov-06 15:35 
QuestionTwo questions on COM Add-in for Outlook 2003 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 2003 Pin
OctopusThu6-Nov-06 15:42
OctopusThu6-Nov-06 15:42 
AnswerRe: Two questions on COM Add-in for Outlook 2003 Pin
OctopusThu6-Nov-06 19:53
OctopusThu6-Nov-06 19:53 
Question.NET remoting with DCOM Pin
Andy UK6-Nov-06 6:31
Andy UK6-Nov-06 6:31 
QuestionXML: Deserialize but don't Serialize Pin
Clive Pottinger6-Nov-06 5:58
Clive Pottinger6-Nov-06 5:58 
AnswerRe: XML: Deserialize but don't Serialize Pin
led mike6-Nov-06 9:21
led mike6-Nov-06 9:21 
AnswerRe: XML: Deserialize but don't Serialize Pin
beatles16927-Nov-06 0:28
beatles16927-Nov-06 0:28 
GeneralRe: XML: Deserialize but don't Serialize Pin
Clive Pottinger8-Nov-06 14:52
Clive Pottinger8-Nov-06 14:52 
GeneralRe: XML: Deserialize but don't Serialize Pin
Clive Pottinger8-Nov-06 16:54
Clive Pottinger8-Nov-06 16:54 
QuestionXML Deserialization question Pin
Clive Pottinger6-Nov-06 5:49
Clive Pottinger6-Nov-06 5:49 
AnswerRe: XML Deserialization question Pin
S. Senthil Kumar6-Nov-06 6:41
S. Senthil Kumar6-Nov-06 6:41 
GeneralRe: XML Deserialization question [modified] Pin
Clive Pottinger6-Nov-06 7:25
Clive Pottinger6-Nov-06 7:25 
AnswerRe: XML Deserialization question Pin
Clive Pottinger6-Nov-06 7:52
Clive Pottinger6-Nov-06 7:52 
GeneralRe: XML Deserialization question Pin
S. Senthil Kumar7-Nov-06 5:30
S. Senthil Kumar7-Nov-06 5:30 
AnswerRe: XML Deserialization question Pin
Clive Pottinger8-Nov-06 15:10
Clive Pottinger8-Nov-06 15:10 
QuestionNearest neighbour algorithm Pin
Islam Khalil Saber6-Nov-06 4:35
Islam Khalil Saber6-Nov-06 4:35 
AnswerRe: Nearest neighbour algorithm Pin
J4amieC6-Nov-06 4:42
J4amieC6-Nov-06 4:42 
AnswerCross posting Pin
leckey6-Nov-06 6:41
leckey6-Nov-06 6:41 

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.