So I have two classes "SplashScreenForm" and "Program" and on event want to run "MainForm". It looks like this:
public partial class SplashScreenForm : Form
{
public event EventHandler<int> RaiseUpdateEvent;
........
and in "Program" defining class like this
static class Program
{
static Form SplashScreen;
static Form MainForm;
SplashScreen = new SplashScreenForm();
.........
but problem is that when I'm trying to access event it says that "SplashScreenForm" doesn't contain that event. How can I solve this problem?
SplashScreen.RaiseUpdateEvent += SplashScreen_RaiseUpdateEvent;
Error says: CS1061 C# 'Form' does not contain a definition for and no accessible extension method accepting a first argument of type 'Form' could be found (are you missing a using directive or an assembly reference?)
