private void btn_edit_Click(object sender, EventArgs e)
    {
        frmEditAccount ed = new frmEditAccount();

        ed.EnableCustomStyle = true;
        DialogResult res = ed.ShowDialog();

        if (res == System.Windows.Forms.DialogResult.OK)
        {
示例#2
0
        private void btnChangePassword_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frmEditAccount = new frmEditAccount(this, new AccountPresenter());

            frmEditAccount.MdiParent = this;
            //set fill parent
            frmEditAccount.Dock = DockStyle.Fill;
            //turn off border style
            frmEditAccount.FormBorderStyle = FormBorderStyle.None;
            //show
            frmEditAccount.Show();
        }