Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/WinForms/CS/VertGridMainDemo/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/WinForms/CS/VertGridMainDemo/ExportForm.cs

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace DevExpress.XtraVerticalGrid.Demos {
    public partial class ProgressForm : DevExpress.XtraEditors.XtraForm {
        public ProgressForm(Form parent) {
            InitializeComponent();
            if(parent != null) {
                Left = parent.Left + (parent.Width - Width) / 2;
                Top = parent.Top + (parent.Height - Height) / 2;
            }
            this.Height = progressBarControl1.Height + progressBarControl1.Top * 2 + 4;
        }

        public void SetProgressValue(int position) {
            progressBarControl1.Position = position;
            this.Update();
        }
    }
}