• Shitty VB Program
    3 replies, posted
So, I'm making a joke VB program to mess with my friend. I have a progress bar, and I'd like it to open a new window when complete. How would I go about doing this? (Yeah, I know... VB; but I'd highly appreciate if you could just help me out.)
Make the form you want and then whenever your progress bar is complete execute formName.Show() or if you want to disable the other form at the same time, formName.ShowDialogue(). That should help you. An example would be (needs to be in your own event): [CODE] For I = 1 to 100 Step 1 progBar.Value = I Application.DoEvents() Threading.Thread.Sleep(10) Next formName.Show() [/CODE] Should work but haven't tested.
[QUOTE=COBRAa;21081294]Make the form you want and then whenever your progress bar is complete execute formName.Show() or if you want to disable the other form at the same time, formName.ShowDialogue(). That should help you. An example would be (needs to be in your own event): [CODE] For I = 1 to 100 Step 1 progBar.Value = I Application.DoEvents() Threading.Thread.Sleep(10) Next formName.Show() [/CODE]Should work but haven't tested.[/QUOTE] Thanks, that worked!
[QUOTE=lemonlimecom;21081423]Thanks, that worked![/QUOTE] No problem. ;)
Sorry, you need to Log In to post a reply to this thread.