private void simpleButton5_Click(object sender, EventArgs e) { AddPanel = new XtraMessageBoxForm(); AddPanel.StartPosition = FormStartPosition.CenterScreen; BasicInfoWaterMeterAdd UserControl = new BasicInfoWaterMeterAdd(); AddPanel.Width = (UserControl.Width + 16); AddPanel.Height = UserControl.Height; AddPanel.Controls.Add(UserControl); AddPanel.Show(); }
private void simpleButton5_Click(object sender, EventArgs e) { AddPanel = new XtraMessageBoxForm(); AddPanel.StartPosition = FormStartPosition.CenterScreen; BasicInfoWaterMeterAdd UserControl = new BasicInfoWaterMeterAdd(); AddPanel.Width = (UserControl.Width + 16); AddPanel.Height = UserControl.Height; AddPanel.Controls.Add(UserControl); AddPanel.Show(); }