else
{
e.Cancel =true;
}
{
e.Cancel =true;
}
解决方案 »
- C#窗体常识
- 搞不懂,泛型问题~
- 求C#编写串口调试助手的源代码,
- 调用控件问题! 困扰好几天了!
- 从Oracle 数据库中提取字段(中文的)存放在DataTable,发现字段是DataTable中的全是口字型的乱码 ѧӦѧʦ,
- 谁能提供 Visio 2003 的下载地址啊,找了好久了,找不到,GOOGLE找的都下不了,有没有正式版的啊,不胜感激,高分回报
- 请问大家,这种功能如何实现?
- 问个简单的问题
- 我日,天天见鬼,我用wsdl做了个webservice的代理类,把文件包含到webapplication中,debug的时候竟然说namespace System.Web.Services
- 为什么了?
- 简单代码帮忙查一下错误!
- 继承和实现的问题
{
// Determine if text has changed in the textbox by comparing to original text.
if (textBox1.Text != strMyOriginalText)
{
// Display a MsgBox asking the user to save changes or abort.
if(MessageBox.Show("Do you want to save changes to your text?", "My Application",
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
// Cancel the Closing event from closing the form.
e.Cancel = true;
// Call method to save file...
}
}
}
{
// Determine if text has changed in the textbox by comparing to original text.
if (textBox1.Text != strMyOriginalText)
{
// Display a MsgBox asking the user to save changes or abort.
if(MessageBox.Show("Do you want to save changes to your text?", "My Application",
MessageBoxButtons.YesNo) == DialogResult.Yes)
{
// Cancel the Closing event from closing the form.
e.Cancel = true;
// Call method to save file...
}
}
}
http://www.51windows.net/hw/asp/jsview.asp?id=50
...
if(result == DialogResult.OK)
{
e.Cancel =false;
}
else
{
e.Cancel =true;}