Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread using Connection.OnSendProgress
Sat, Jul 4 2009 9:47 AMPermanent Link

Pete Hollyer
When doing a backup I'd like to increment a Progress bar to the user so they know something is going on...

Here is my code:

DBConn.OnSendProgress+=new EDBCommsProgressEvent(DBConn_OnSendProgress);   

SQL = "BACKUP DATABASE ListBuilder ";
SQL += " AS " + chrQuote + FileName + chrQuote;
SQL += " TO STORE Backups"  ;
SQL += " INCLUDE CATALOG ";
dbCommand = new EDBCommand(SQL, DBConn);
dbCommand.ExecuteNonQuery();

And here is my method

private void DBConn_OnSendProgress(object sender, EventArgs e)
{
     MessageBox.Show("Fired!");
}

However when I back up my database some 7MB the event never fires...what am I doing wrong?

Pete
Mon, Jul 6 2009 12:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Pete,

<< When doing a backup I'd like to increment a Progress bar to the user so
they know something is going on...

Here is my code:

DBConn.OnSendProgress+=new EDBCommsProgressEvent(DBConn_OnSendProgress);

SQL = "BACKUP DATABASE ListBuilder ";
SQL += " AS " + chrQuote + FileName + chrQuote;
SQL += " TO STORE Backups"  ;
SQL += " INCLUDE CATALOG ";
dbCommand = new EDBCommand(SQL, DBConn);
dbCommand.ExecuteNonQuery();

And here is my method >>

What you want is this event:

EDBCommand.OnProgress

http://www.elevatesoft.com/manual?action=mantopic&id=edb2dac&category=3&topic=19

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Jul 8 2009 11:12 AMPermanent Link

Pete Hollyer

Thanks!  Works like a champ!!

Its amazing how things work when you use the correct events and methods!!

Pete
Image