Hi,
I create a file from the database after the click on the button "Generate". file creation takes some time.
I want to create a progress bar when creating the file that closes when the creation is finished.
I also use the component telerik
private void GenererFile()
{
SaveFileDialog dialog = new SaveFileDialog();
dialog.DefaultExt = "txt";
dialog.Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", "txt", "Text");
dialog.FilterIndex = 1;
if (dialog.ShowDialog() == true)
{
using (Stream stream = dialog.OpenFile())
{
StreamWriter sw = new StreamWriter(stream);
foreach (Client item in ClientList)
{
sw.WriteLine("{ ...
Go to the complete details ...