vb.net - VB - Issues With Progress Bar -


i'm making simple progress bar used splash screen within application when code executed, loading bar not reach end of progress bar.

i've used code:

splashprogressbar.increment(1)      if splashprogressbar.value = 100          main_menu.show()          me.hide()      end if 

to open form when progress bar reaches 100, has been set maximum value.

the issue more related appearance rather functionality still understand why occurs , fix.

to clarify, form main_menu, opens when bar 3/4 of way completed , can't head around why occurs. ideas?

i couldn't imagine vb has such bug. running old or incompatible ".net framework" causes that. can try set progressbars maximum programatically while running program. use code in form1_load event:

progressbar1.maximum = 100 

it should work. if doesn't, maybe it's code related. try fill progressbar way (it must in timer):

if splashprogressbar.value = splashprogressbar.maximum      main_menu.show()      me.hide()  else     splashprogressbar.value += 100 end if 

just friendly advice: seems you're simulating fake loading bar fills , then, then, open app (potentially wasting users time). don't that.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -