Web Browser

Hi,

I have been creating a web browser

Can you tell me though how to make a progress bar work

Thanks


Answer this question

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 )
     
    Smile.
    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 Smile.


  • Web Browser