Hi Stephen,
Thanks for your interest in Syncfusion products.
You can remove the Custom Caption Button using the Remove() method of CaptionButtonsCollection.
Here is the sample code snippet.
private void buttonAdv1_Click(object sender, EventArgs e)
{
try
{
DialogResult result = MessageBox.Show("Do you want to Remove Custom
Button??", "Remove...", MessageBoxButtons.OKCancel);
if (result == DialogResult.OK)
{
//In Remove method Pass the argument as name of the custom button
cbGroupBar1.Remove(previous);
MessageBox.Show("succesfully Removed", "Removed..");
}
else if (result == DialogResult.Cancel)
{
MessageBox.Show("Removal Process Cancelled..");
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}
Please refer the sample and let me know if this helps.
rel='nofollow' href="http://websamples.syncfusion.com/samples/Tools.Windows//I70547/main.htm">http://websamples.syncfusion.com/samples/Tools.Windows//I70547/main.htm
Regards,
Pavan. K