Error message: Object reference not set to an instance of an object
Have you included a class int he file but forgotten to create it as an object?
private SomeClassName SomeClassName1;
public PageVentilationKeyPopup(string PopupType, int LevelNumber)
{
this.InitializeComponent();
SomeClassName1 = new SomeClassName(); //<Did you forget this?
