none
Outlook Custom Task Pane

    Question

  • Hi..

    I want to remove the close button(or the top bar completely) in my outlook custom task pane. Is possible ? Or is it possible to add a region in that place ?

    Thanks...

    Jenus M


    Monday, October 07, 2013 6:51 AM

Answers

  • Hi Barry,

    >> I want to remove the close button(or the top bar completely) in my outlook custom task pane. Is possible ? <<

    No, I don’t think there is any way to do that. And we could not add the region to task pane either.

    For a work around, we can display the custom task pane while users closing it:

    private CustomTaskPane ctp;
            private UserControl1 TPControl = new UserControl1();
    
            private void ThisAddIn_Startup(object sender, System.EventArgs e)
            {
                ctp = CustomTaskPanes.Add(TPControl, "test");
                ctp.Visible = true;
                ctp.VisibleChanged += ctp_VisibleChanged;
            }
    
            private void ctp_VisibleChanged(object sender, EventArgs e)
            {
                if (ctp.Visible == false)
                {
                    ctp = CustomTaskPanes.Add(TPControl, "test");
                    ctp.Visible = true;
                    ctp.VisibleChanged += ctp_VisibleChanged;
                }
            }


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Jenus M Friday, October 11, 2013 5:30 AM
    Wednesday, October 09, 2013 3:39 PM

All replies

  • Hi Jenus,

    I've moved your case to "Outlook for Developers". It is more appropriate there.

    Regards,



    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 08, 2013 8:05 AM
  • Hi Barry,

    >> I want to remove the close button(or the top bar completely) in my outlook custom task pane. Is possible ? <<

    No, I don’t think there is any way to do that. And we could not add the region to task pane either.

    For a work around, we can display the custom task pane while users closing it:

    private CustomTaskPane ctp;
            private UserControl1 TPControl = new UserControl1();
    
            private void ThisAddIn_Startup(object sender, System.EventArgs e)
            {
                ctp = CustomTaskPanes.Add(TPControl, "test");
                ctp.Visible = true;
                ctp.VisibleChanged += ctp_VisibleChanged;
            }
    
            private void ctp_VisibleChanged(object sender, EventArgs e)
            {
                if (ctp.Visible == false)
                {
                    ctp = CustomTaskPanes.Add(TPControl, "test");
                    ctp.Visible = true;
                    ctp.VisibleChanged += ctp_VisibleChanged;
                }
            }


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Jenus M Friday, October 11, 2013 5:30 AM
    Wednesday, October 09, 2013 3:39 PM
  • Hi..

    Thanks for your replay, I want to create a side panel in outlook (like to-do bar, no close button/top bar, it perfectly fit with outlook window-right side) Can u tell me how to achieve this?

     

    Thanks

    Jenus M

    Friday, October 11, 2013 5:47 AM
  • Hi Jenus,
    We can create a Custom Task Pane as the same as to-do bar, but we cannot disabled close button/top bar.
    Close and top a window or panel is a universal function. When we open a new window, it is an expedient way for us to close or move any window.
    Custom Task Pane is a window model that Microsoft provides to us, we cannot to change it, what we can do now is customizing user controls to add into Custom Task Pane.
    For more information about Custom Task Pane, please refer to Custom Task Panes.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, October 11, 2013 5:56 PM