Ok I got a dialog going and I want it my script to create a new tab with the file name of what the user want's to call it. So here is my script.
Code:
create CreateScript = new create();
if (CreateScript.ShowDialog() == DialogResult.OK)
{
CreateScript.Text = dlg.scriptName;
// Create a new instance instead of using the reference to rtb
RichTextBox newRtb = new RichTextBox();
tabPage1 = new TabPage(CreateScript.ScriptName);