findReplaceForm_FormClosed event not occurred

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Kim,SeongSik
Version: 4.0.0285
when I close findReplaceFormform, findReplaceForm_FormClosed event not ocurred.
(if close main form, findReplaceForm_FormClosed event occured)
is it normal behavior??)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ActiproSoftware.SyntaxEditor;

namespace actipro_bug
public partial class Form1 : Form
FindReplaceForm findReplaceForm;
private FindReplaceOptions m_findReplaceOptions = new FindReplaceOptions();
public Form1()

private void button1_Click(object sender, EventArgs e)
// Show the find/replace form
if (findReplaceForm == null)
findReplaceForm = new FindReplaceForm(editor, m_findReplaceOptions);
findReplaceForm.FormClosed += new FormClosedEventHandler(findReplaceForm_FormClosed);
findReplaceForm.Owner = this;
if (findReplaceForm.Visible)

void findReplaceForm_FormClosed(object sender, FormClosedEventArgs e)
//throw new NotImplementedException();

sample vs2008 project =>

my pc info
.NET 3.5SP1
ACTIPRO 4.0.0285

sorry for my poor english.

[Modified at 06/30/2010 12:48 PM]

[Modified at 06/30/2010 12:48 PM]

[Modified at 06/30/2010 12:52 PM]

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA

As a side note, the entire FindReplaceForm source is included in the sample project. You can see in our OnClosing we cancel it to hide the form instead of close it so that it can be reused.

If you want it done differently you can copy the source for the form from our sample and alter it how you need.

Actipro Software Support

Posted 14 years ago by Kim,SeongSik
(Sorry for post duplicatation)

[Modified at 06/30/2010 08:30 PM]
The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.