static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Starting App Context and start the app inside it. SpreadsheetFormContext appContext = SpreadsheetFormContext.GetFormContext(); appContext.RunForm(new SpreadsheetForm()); Application.Run(appContext); }
/// <summary> /// Creates a new blank spreadsheet. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void newToolStripMenuItem_Click(object sender, EventArgs e) { SpreadsheetFormContext.GetFormContext().RunForm(new SpreadsheetForm()); }