DESIGNING .NET 4
WINDOWS APPLICATIONS:
PRESENTATION LAYER

- APPLICATION

WORKFLOW

WINDOWS FORMS

MDI APPLICATIONS

ChildForm childForm = new ChildForm();

childForm.MdiParent = this;

childform.Show();

this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);

Form activeForm = this.ActiveMDIChild;

Form activeForm = this.ActiveMDIChild;

// Check to see if active form exists.

if (activeForm != null)

{

if (activeForm.ActiveControl.GetType() is TextBox)

{

TextBox activeTextBox = (TextBox)activeForm.ActiveControl;

// Create new instance of DataObject interface.

IDataObject data = Clipboard.GetDataObject();

// Check to see if the data in the data object is text. If so,

// paste into active text box.

if (data.GetDataPresent(DataFormats.Text))

{

activeTextBox.Text = data.GetData(DataFormats.Text).ToString();

}

}

}

WPF NAVIGATION

APPLICATIONS

DESIGN FOR DIFFERENT

INPUT TYPES