[HD] Visual Basic 2010 Express Progress Bar Tutorial

preview_player
Показать описание
In this Visual Basic 2010 tutorial, I will teach you how to animate a progress bar and give them a function. Such as, if a Progress Bar reaches a specific value, a command happens. The example I use in this tutorial is a change of text on a label.

The Progress Bar functions can go as basic as this or as advanced as you like. The methods I teach will be practically the same for a lot of commands, provided you know the coding for it.

Thanks
-Wireheadking

Рекомендации по теме
Комментарии
Автор

Make sure your progressbar is called progessbar1. Also, I don't know if that '->' was there as a symbol of some kind but a full stop (period) is supposed to go there instead.

Wireheadking
Автор

In this example, the button is called Button1 and the window is called Form2:
To add a window, just go to Project > New form.
Set the window and button to be invisible by going down to the properties and setting visible to false.

These are the scripts:
Script for timer:
If ProgressBar1.value = 100 then
Button1.visible = true

Script for Button:
Form2.visible = True

Wireheadking
Автор

@iTzFrazzle Awesome, I'm glad you found it helpful. Thanks for watching!

Wireheadking
Автор

On the progressbar, set the value to 10 in the properties window. Or you can double click on the form and write the code:
Progressbar1.Value = 10

Wireheadking
Автор

For people using 2010 express, you need to use timer1->Start(); and similar with progressBar1 -> Increment(1);

PhoenixChemistry
Автор

Thanks, It's working !
You're my first teacher that can explain me clearly about this, Another people who got the tutorials on YouTube, I can not even do it step by step! Lol!
- You just Earned my subbed + Liked :D

cratozcraft
Автор

first little kid to actually have knowledge xD

KezzaMacFezza
Автор

I don't know what it displays for you but the codes will all still need to be the same at this basic level.

Wireheadking
Автор

This is the only and first tutorial that i needed it to Laod a program for me once he progress bar is complete. i didnt even kno how to make it work now My program looks SKILL LEVEL PRO cuz of you..I have created backgrounds everything in ADOBE PHOTOSHOP but i wanted this thing working..SOO THANKSFUL

JokerGotNoRules
Автор

Very easy and helpful.. Love the way you explained each and everything from the very basics..

riganass
Автор



the last word of the previous message was meant to be message not msgBox

so once the message is sent the progress bar should be at 100%
and then the msg box should pop up

sorry if this is confusing lol
thanks in advance



InsaneHAz
Автор

Hey thanks alot dude, not only did I learn new things, you motivated me into increasing my confidence in learning :D

VGivens
Автор

Try this:

Button:

Log.text="Calculating Response..."
Timer1.start()

Timer1:

If ProgressBar1.Value = 100 then
If TextBox1.Text = "Hi" or
TextBox1.text = "Hey" or
TextBox1.text = "Hello" or
TextBox1.text = "hi" Then
Botchat.Text = "Hello! Type in a Question and I'll answer it"

Don't just copy and paste this though - make sure you type it in, otherwise VB might might not put the new lines in correctly.

Wireheadking
Автор

Great tutorial man, way better explained than any other. Subscribed.

johnmiller
Автор

@WhiteboyOfUS Put the following code in the button:

Dim Random As New Random
Timer1.Interval = Random.Next(100)

The only things you might want to change is on the subline when here it says "Timer1", change that to the name of the timer. Also increase / decrease the 100 in the brackets to increase/decrease variety of numbers.

Wireheadking
Автор

thank you very much I can use progress bar now. This video is amazing. You've just got a new subscriber

batuhankaya
Автор

@Lucky82610 Assuming you mean "How do you code the message box?".

Well, the code to change it is in the timer. (If ProgressBar1.Value = 100 then _ label1.text = hello)

_ = line ending


Wireheadking
Автор

I watched this 7 month ago when i was "poor" coder and mannn it really helped me.Now i am high class coder :D

dragonballsuper
Автор

ive done this several times with it working, but whenever i try to start coding, i dont have the regular private forms code, i have this, what do i do?


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {

        }
    }
}

SomeSteven
Автор

@GatesAustin Not sure why that is. If you followed all the steps, it should have worked. The only thing I can think off is mabye you've got an outdated programming language or something. It couldn't be any thing else. Try watching it again and focus a lot to see if you missed something out.

Wireheadking