findReplaceForm_FormClosed event not occurred

SyntaxEditor for Windows Forms Forum

Posted 9 years ago by Kim,SeongSik
Version: 4.0.0285
Avatar
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()
{
InitializeComponent();
}

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)
findReplaceForm.Activate();
else
findReplaceForm.Show();
}

void findReplaceForm_FormClosed(object sender, FormClosedEventArgs e)
{
MessageBox.Show("closed");
//throw new NotImplementedException();
}
}
}

-----------------------------------------------------
sample vs2008 project =>
http://www.orascope.net/question/actipro_bug.zip
-----------------------------------------------------

my pc info
==============
.NET 3.5SP1
ACTIPRO 4.0.0285
XP SP3

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 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Kim,

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 9 years ago by Kim,SeongSik
Avatar
thanks!!
(Sorry for post duplicatation)

[Modified at 06/30/2010 08:30 PM]
The latest build of this product (v2020.1 build 0400) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.