G
Guest
This should be easy for a C# programmer.
In the code below:
1. how do I modify the code for the Msg function to return a result (the
button clicked)?
2. how do I trap the value in the Main function?
Thank you.
using System;
using System.Windows.Forms;
namespace mine
{
public class personal
{
public static void Main()
{
/* Calculation code goes here */
Msg ("Calculation Complete. Update database?");
/* DAtabase update code */
}
public static void Msg(string message)
{
MessageBox.Show (message, "My Application",
MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
}
}
}
In the code below:
1. how do I modify the code for the Msg function to return a result (the
button clicked)?
2. how do I trap the value in the Main function?
Thank you.
using System;
using System.Windows.Forms;
namespace mine
{
public class personal
{
public static void Main()
{
/* Calculation code goes here */
Msg ("Calculation Complete. Update database?");
/* DAtabase update code */
}
public static void Msg(string message)
{
MessageBox.Show (message, "My Application",
MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
}
}
}