Step by Step Debugging

  • Thread starter Mallikarjun S Bendigeri
  • Start date
M

Mallikarjun S Bendigeri

Hi,
Iam building a Add-in for Outlook. On Clicking a button on CommandbarPopup( created programmitically), I display a windows form. The windows form has a datagrid populated with data from XML file. First time When I click the commandbarbutton on the Commandbarpopup, the form is loaded and displayed.
When I close the form and again click the commandbarbutton on Commandbarpopup (for Second time) the form does not appear.
I have written MessageBox.show in the Click event to find if the Event is fired.
First time it is fired second time it is not.
How can do the step by step debugging to check what is the error

Here is the code in the commandbarbutton Click event,
private void oPopupButton_Click(CommandBarButton Ctrl, ref bool Cancel)
{
MessageBox.Show("Popup");
try
{
if (frm1 ==null)
frm1=new frmShowPhoneList();
frm1.Show()=true;
}
catch(System.Exception ex)
MessageBox.Show(ex.Message);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top