using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace NCPS.Forms
{
public partial class MDIParent1 : Form
{
Form_Main mForm = new Form_Main();
public MDIParent1()
{
InitializeComponent();
}
private void MDIParent1_Load(object sender, EventArgs e)
{
mForm.MdiParent = this;
mForm.Show();
}
private void S_SMGP_Click(object sender, EventArgs e)
{
//mForm.T_Rows.Text = "4";
//mForm.T_Columns.Text = "3";
//mForm.T_Prefix.Text = "SM0";
//mForm.T_SeriesLength.Text = "8";
//mForm.T_PageLength.Text = "6";
//mForm.T_Date.Text = "Jul. 01, 2012";
//mForm.T_Pack.Text = "500";
//mForm.CB_Terminator.Checked = true;
//mForm.C_Delimiter.Text = "space";
}
}
}
Good day guys, I have here a code, in a class, where it should access some controls from a form (form1) when the user clicks a button from (parent form). But, It doesn't work, I'm new to C# so don't really know if I'm doing it right :)