Software Development Network>> VS Express Editions>> Web Browser
I don't get it!
I'am using Visual C# Express 2005 and still cant get the progress bar to work when loading a page!
Please explain!
For the progress bar control you can set the lower and the upper value, the default value are 0 and 100, and you set the value by the function SetPercentage( int ) .That's what you mean // Update the DataBaseHandle.executeNonQuery( "ALTER TABLE Ana ADD COLUMN GROUP_COD INTEGER" );updFrm.SetPercentage( 25 );Handle.executeNonQuery( "UPDATE Ana SET GROUP_COD = 0 " );updFrm.SetPercentage( 50 );Handle.executeNonQuery( "CREATE TABLE Groups" + "(" + " GROUP_COD INTEGER PRIMARY KEY," + " DESCRIPTION VARCHAR( 255 )" + ")");updFrm.SetPercentage( 75 );Handle.executeNonQuery( "UPDATE DBVersion SET MAJOR = \'" + frmMain.DB_MAJOR + "\', MINOR = \'" + frmMain.DB_MINOR + "\', REVISION = \'" + frmMain.DB_REVISION + "\'" );updFrm.SetPercentage( 100 ); That's a mine sample code .
Web Browser
Wayne Woodbury
I don't get it!
I'am using Visual C# Express 2005 and still cant get the progress bar to work when loading a page!
Please explain!
chuckcsfd
For the progress bar control you can set the lower and the upper value, the default value are 0 and 100, and you set the value by the function
.
.
SetPercentage( int )
That's what you mean
// Update the DataBase
Handle.executeNonQuery( "ALTER TABLE Ana ADD COLUMN GROUP_COD INTEGER" );
updFrm.SetPercentage( 25 );
Handle.executeNonQuery( "UPDATE Ana SET GROUP_COD = 0 " );
updFrm.SetPercentage( 50 );
Handle.executeNonQuery( "CREATE TABLE Groups" +
"(" +
" GROUP_COD INTEGER PRIMARY KEY," +
" DESCRIPTION VARCHAR( 255 )" +
")"
);
updFrm.SetPercentage( 75 );
Handle.executeNonQuery( "UPDATE DBVersion SET MAJOR = \'" + frmMain.DB_MAJOR + "\', MINOR = \'" + frmMain.DB_MINOR + "\', REVISION = \'" + frmMain.DB_REVISION + "\'" );
updFrm.SetPercentage( 100 );
That's a mine sample code