//request to run the modeling method, and then enable the prediction page. void btnRun_Click(object sender, EventArgs e) { if (innerIronPythonControl.lbIndVariables.Items.Count == 0) { MessageBox.Show("You must chose variables first and go to model tab before selecting Run", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } innerIronPythonControl.btnRun_Click(sender, e); //check to see if run was clicked before model tab was active if (boolStopRun) { return; } //check to see if the model has been canceled first if (boolRunCancelled) { return; } //this model is complete and ready for prediction boolComplete = true; Broadcast(); //make modeling the focus again (Broadcast() makes Prediction visible and 'on top') MakeActive(); }