In order to create an interface in C Sharp, you need to have a class that inherits from the System.Windows.Forms.Form class and then add the following code:
- public partial class Form1 : Form {
- public Form1() { InitializeComponent(); }
- public void ShowMessage(string message) { MessageBox.Show(message); }
- }
Share a personalized message with your friends.