-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.cs
35 lines (31 loc) · 824 Bytes
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraTabbedMdi;
namespace WindowsFormsApplication32
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.myTabbedMdiManager1.HeaderShowActiveFilesButton = true;
}
private void Form1_Load(object sender, EventArgs e)
{
XtraForm xtraForm = new XtraForm();
xtraForm.MdiParent = this;
xtraForm.Text = "Form 1";
xtraForm.Show();
XtraForm xtraForm1 = new XtraForm();
xtraForm1.MdiParent = this;
xtraForm1.Text = "Form 2";
xtraForm1.Show();
}
private void myTabbedMdiManager1_PageAdded(object sender, MdiTabPageEventArgs e)
{
XtraTabbedMdiManager tabbedMdi = (XtraTabbedMdiManager)sender;
e.Page.ImageIndex = tabbedMdi.Pages.Count - 1;
}
}
}