Click here to Skip to main content
15,893,622 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net DataView.RowFilter not working Pin
dodaddydo8-Apr-10 2:55
dodaddydo8-Apr-10 2:55 
AnswerRe: vb.net DataView.RowFilter not working Pin
Tej Aj7-Apr-10 20:08
Tej Aj7-Apr-10 20:08 
Questionprogress bar Pin
Daniel Engelkes6-Apr-10 17:03
Daniel Engelkes6-Apr-10 17:03 
AnswerRe: progress bar Pin
Anubhava Dimri6-Apr-10 19:45
Anubhava Dimri6-Apr-10 19:45 
AnswerRe: progress bar Pin
KreativeKai7-Apr-10 7:18
professionalKreativeKai7-Apr-10 7:18 
GeneralRe: progress bar Pin
Steven J Jowett7-Apr-10 22:54
Steven J Jowett7-Apr-10 22:54 
GeneralRe: progress bar Pin
KreativeKai9-Apr-10 6:05
professionalKreativeKai9-Apr-10 6:05 
AnswerRe: progress bar Pin
Gregory Gadow7-Apr-10 7:49
Gregory Gadow7-Apr-10 7:49 
What, precisely, is the bar measuring the progress of? That is going to have an impact as to how you code your solution. If it is just a timer -- the splash screen will be visible for 10 second and then go away -- you can use a timer.

If you are actually displaying the progress of your application's start-up, though, you will need to do some planning. Set your bar to have a minimum of 0 and a maximum of 100. Then look at everything that the set-up does: read the registry and set variables, locate network resources, manually load libraries, verify user credentials, and so on. Assign each individual step a percentage of your maximum, and reset the bar's value after each step. You might also want to add a status bar at the bottom of the splash to give text feedback.
Private Sub UpdateProgress(ByVal Text As String, ByVal Increment As Integer)
    ToolStripStatusLabel1.Text = Text
    ToolStripProgressBar1.Value += Increment
    StatusStrip1.Invalidate()
End Sub

Public Sub Main()
    ToolStripProgressBar1.Minimum = 0
    ToolStripProgressBar1.Maximum = 100
    ToolStripProgressBar1.Value = 0

    UpdateProgress("Verifying user credentials...", 20)
    {code}

    UpdateProgress("Locating network resources Alpha...", 10)
    {code}

    UpdateProgress("Locating network resources Beta...", 10)
    {code}

    UpdateProgress("Locating network resources Gamma...", 10)
    {code}

    UpdateProgress("Verifying current version...", 25)
    {code}

    UpdateProgress("Loading MyLib1.dll...", 5)
    {code}

    UpdateProgress("Loading MyLib2.dll...", 5)
    {code}

    UpdateProgress("Loading MyLib3.dll...", 5)
    {code}

    UpdateProgress("Finalizing...", 10)
    {code}

    Me.Close()
End Sub


When the splash screen closes, the app's main form will launch.
Questionbecause it is being used by another process Pin
KreativeKai6-Apr-10 7:56
professionalKreativeKai6-Apr-10 7:56 
AnswerRe: because it is being used by another process Pin
Kschuler6-Apr-10 8:34
Kschuler6-Apr-10 8:34 
GeneralRe: because it is being used by another process Pin
KreativeKai6-Apr-10 9:21
professionalKreativeKai6-Apr-10 9:21 
AnswerRe: because it is being used by another process Pin
Gregory Gadow6-Apr-10 9:07
Gregory Gadow6-Apr-10 9:07 
GeneralRe: because it is being used by another process Pin
KreativeKai6-Apr-10 9:16
professionalKreativeKai6-Apr-10 9:16 
GeneralRe: because it is being used by another process [modified] Pin
Dave Kreskowiak6-Apr-10 10:06
mveDave Kreskowiak6-Apr-10 10:06 
GeneralRe: because it is being used by another process Pin
KreativeKai7-Apr-10 6:22
professionalKreativeKai7-Apr-10 6:22 
Questionfilesystemwatcher and linux Pin
wikus706-Apr-10 3:54
wikus706-Apr-10 3:54 
AnswerRe: filesystemwatcher and linux Pin
Dave Kreskowiak6-Apr-10 4:09
mveDave Kreskowiak6-Apr-10 4:09 
GeneralRe: filesystemwatcher and linux Pin
wikus706-Apr-10 4:19
wikus706-Apr-10 4:19 
GeneralRe: filesystemwatcher and linux Pin
Dave Kreskowiak6-Apr-10 7:12
mveDave Kreskowiak6-Apr-10 7:12 
GeneralRe: filesystemwatcher and linux Pin
wikus706-Apr-10 20:00
wikus706-Apr-10 20:00 
GeneralRe: filesystemwatcher and linux Pin
Dave Kreskowiak7-Apr-10 2:03
mveDave Kreskowiak7-Apr-10 2:03 
AnswerRe: filesystemwatcher and linux Pin
Steven J Jowett7-Apr-10 2:01
Steven J Jowett7-Apr-10 2:01 
QuestionHow to Total Shared Variable in Crystal Report Pin
.NET- India 5-Apr-10 23:55
.NET- India 5-Apr-10 23:55 
AnswerRe: How to Total Shared Variable in Crystal Report Pin
Anubhava Dimri7-Apr-10 19:21
Anubhava Dimri7-Apr-10 19:21 
QuestionListbox Values in [modified] Pin
Anubhava Dimri5-Apr-10 21:43
Anubhava Dimri5-Apr-10 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.