Getting Data from a dialog?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ajm113
    New Member
    • Jun 2007
    • 161

    #1

    Getting Data from a dialog?

    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);
Working...