Hi,
Check the following:
1) Check that you have a line on the Windows designer code like:
this.Closing += new
System.Componen tModel.CancelEv entHandler(this .Form1_Closing) ;
2) Note if the function "Form1_Clos ing" (the form1 will be the name of your
form) exists like
private void Form1_Closing(o bject sender,
System.Componen tModel.CancelEv entArgs e)
{
//Put your stuff here
}
I use to mess around with my events and remove the function when the
overloading is still there!. The wizard that creates the event can not handle
changes on its code :)
Salva
Hi,
Upon a string class lenght is set to UInt32, actually is not real, it has a
much limited number, I found a very interesting page about strings.
http://www.codeproject.com/dotnet/strings.asp
Anyway, back to your case, it seems that the message box has a limit on the
amount of data that can show, this seems to be normal, otherwise imaging a
hugh message box with 2Mb of string data!
Best regards
Salva
"Al the programmer" wrote:
I want to catch the Closing event for my form. I created a test windows app
using the wizard. I then create the Closing event by clicking the lightning
bolt on the properties pane. The code is added to the app but my app won't
compile. It generates a "Test.Form1.Clo sing() denotes a 'method' which is
not valid in the given context" error.