Click here to Skip to main content
15,887,417 members

Comments by jason_mf (Top 3 by date)

jason_mf 28-Mar-11 10:12am View    
Now it's ok, Thanks very much.
jason_mf 28-Mar-11 9:15am View    
public partial class Form1 : Form
{
public delegate void TestEventHandler(object sender, EventArgs e);
public event TestEventHandler OnTestEvent;
public Form1()
{

InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
OnTestEvent += new TestEventHandler(Form1_OnTestEvent);
}

void Form1_OnTestEvent(object sender, EventArgs e)
{
throw new NotImplementedException();
}

private void button1_Click(object sender, EventArgs e)
{
//try
//{
if (OnTestEvent != null)
{
OnTestEvent(this, EventArgs.Empty);
}
//}
//catch (Exception ex)
//{
// MessageBox.Show("Publish Event:"+ex.Message);
//}
}

I write like this, and write "Application.ThreadException" and "AppDomain.CurrentDomain.UnhandledException" like you, but did not catch exception
jason_mf 14-Feb-11 23:49pm View    
Thanks. But I need to studing some Other technologies. example HttpRequest.
If I use HttpRequest post data to web from winform.
The wimform how to receive the result from the web ?
Example: the winform send a string to web. the web convert the string to Capital.
then how to return the string and the winform how to receive(Only the string)?