Hey thanks for making these great videos. I have a question on variables, if i wanted to for example imput a word, and the program would search my word as a definiton on some sort of dictionary website, how would i do that?
Maybe to make it easy, u can always do something before the name u "dim", like by string u do the s and then uppercase ur name, by integer u use i , arrays , arrs ,....
Like: Dim sMessagecontent As String = "Variables are cool"
@MCneun Yes, you're right, but that is just in general. Exist near 15 kind of varibles, i am not sure about the real number, but is almost 15. Anyway the diferences, sometimes, are not so big
Don't mind these youtube trolls. They don't do anything but try to bring people down. Anyway, why was it that when you had 2 messagebox that one became the title?
I want to define a variable in a global project. So like, when Inside a Combo-box I have "Fire" I want it to output as "1". So basically, Dim Fire As Integer = 1. But it wont work. I have my Combo Box outputting the command into a text-box, but it keep outputting as Fire not 1. Please help dude!
@PANOSPATISIA He speaks very fluent English the thing is most of you are used to hearing American accent so you can't make a difference when someone is speaking with an English accent you just think it's weird.
Wow what is wrong with you little twats.... you come here to learn vb.net(You would not be here if this would not be true) and you hate on the video? Wow... who cares how he speaks, everyone understands him clearly.
@TeachMeComputer What you need to do next is give little projects for people to do and tutorials through them if they get stuck. That'd be ideal for someone like myself. Great job btw.
Nice tutorial. :) Can you tell me what's the point of using a variable though? I know you used the Dim messagebox as string = "something" and messagebox.show (messagebox) to show us another way of inserting text into the pop-up box.. but what's the point when you can just use messagebox.show ("something") ?
You do need to use quotations when using variables, because I did as you told me and it gave me an error - but when I did use quotations it worked just fine.
@thatwaslawlin Go to debug then build and then save all. Go to my documents then visual studio 2010, projects, whateva u saved it, bin release and then attach the application file. Or look at the download and run program tutorial to see how to make a program that will download it
@mrcreamyful So in short heres some code Form1.load ------------------------------- 'code for simple prank for unsuspecting sister msgbox("Warning! Virus has infected your system, initiating immediate shutdown!") shell("cmd.exe") sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shutting down computer!") ' use underneath for dramatic effect too lol shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") but you need a timer to delay the output to cmd from your app.
@mrcreamyful So in short heres some code Form1.load ------------------------------- 'code for simple prank for unsuspecting sister msgbox("Warning! Virus has infected your system, initiating immediate shutdown!") shell("cmd.exe") sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shutting down computer!") ' use underneath for dramatic effect too lol shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") but you need a timer to delay the output to cmd from your app.
so I want to play a prank on my sister saying your computer is bugged, then it will say windows is now shutting down, ive gotten the message parts but how do I actually make the computer shut down when you hit ok
@mrcreamyful You have to use command prompt or CMD for short. To use this you would have to use sendkeys as an output for the program. Sendkeys basically outputs your inputs into the program out to the computer to correspond with your instructions. For instance you would have to start command prompt like this.
shell("cmd.exe") ' this will start Command Prompt or CMD for short
sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shut down in progress!") ' this outputs info to cmd to shutdown the comp.
@mrcreamyful So in short heres some code Form1.load ------------------------------- 'code for simple prank for unsuspecting sister msgbox("Warning! Virus has infected your system, initiating immediate shutdown!") shell("cmd.exe") sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shutting down computer!") ' use underneath for dramatic effect too lol shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") shell("cmd.exe") but you need a timer to delay the output to cmd from your app.
These are great vids I plan to watch them all, Im about to start vb.net in my course work and also my employer is considering me for a JR analyst position which will handle alot of vb.net ado.net and share point stuff. Good Job kid.
i need help ,, i saved just a few numbers in a form of column in text.txt (as a vector)
and then i wanted to know how components does this vector contains(i mean,how many numbers i ve written in that vector) , i would like to do this throw : 1stly reading this vector() throw new io.streamreader within a (for...next)loop,can u please tell me how to do this?? thanx
Really Weird, Your using basic, im using Microsoft Visual C# 2008 Express Edition and myne has brackets, unlike your edition so its hard to understand, and theres more errors in myne when i follow your guide, because of this, just a heads up for future tutorials.
I need help! i know already how to make var so a new Msgbox/inputbox appers with a diffrent text depending on what var i typed but what i need help with is idk how to make a varible that means end (closes the program) so that if you type the other var it will keep on going and loop where i said it to loop with i know is just to do the loop state but then how to make an End var?! please help i really need an answer quick!
be used anywhere within the form public means the variable can be used anywhere within the project while private means it can only be used on the form in which it was declared dim means the variables private while public shared means the variables public
when you declare a variable you decide whether is public or private, local or global, you give it a name and you decide on its data type for example
dim hello as string = "hello"
makes the variable private gives it the name hello and gives it the data type string meaning your working with words and depending on where you place the variable tells the compiler whether its local or global local means it can only be used in the same event/sub/function it was declared in and global means it can
That's a little much to stomach on the first real tutorial. I'm going to be creating a further informational video on variables and why you would use an integer instead of a string.
@RevitalMalkan Very true. The code will be ripped apart and won't be recommended by professionals if it isn't safe, even if it is for demonstration purposes. It's almost always a good idea to convert to string. Thanks for the reminder.
"Variables are one of the most important parts of programming that you will ever learn" - TeachMeComputer.
ROGER THAT!
TeachMeCodingX 2 days ago
how do you add 2 strings together??
TheGhostGhillie 2 weeks ago
Hey thanks for making these great videos. I have a question on variables, if i wanted to for example imput a word, and the program would search my word as a definiton on some sort of dictionary website, how would i do that?
RoundishCrab4 2 weeks ago
so what is the differ of integer on string
mrichard5682 4 weeks ago
Maybe to make it easy, u can always do something before the name u "dim", like by string u do the s and then uppercase ur name, by integer u use i , arrays , arrs ,....
Like: Dim sMessagecontent As String = "Variables are cool"
2nd : Dim iMynumber as Integer = 10
Ewoutdirkx 1 month ago
Hye ..Is there a way to display two message boxes one with String output like "variables are cool "and the number 10 in another box ?
badcompany2k11 1 month ago
@TeachMeComputer
so string means text and integer means number input, am i right?
MCneun 1 month ago
@MCneun yes
Ewoutdirkx 1 month ago
@MCneun Kind of, but Integer means a integer value like 1 or 3
Dim age As Integer = 35
Killerblackpanther 1 month ago
@MCneun Yes, you're right, but that is just in general. Exist near 15 kind of varibles, i am not sure about the real number, but is almost 15. Anyway the diferences, sometimes, are not so big
DuStInOIO 1 day ago
Btw. dont listen to this haters they are probably a 0 at programming i hope what they say does not affect you ! Keep up the good work!
konjinesbroja13 1 month ago
nice work ! :D
konjinesbroja13 1 month ago
thank u sir .im very much interested in way of teaching.
zicodaddy1 2 months ago
at 2:50
SaadNDanny 2 months ago
Don't mind these youtube trolls. They don't do anything but try to bring people down. Anyway, why was it that when you had 2 messagebox that one became the title?
SaadNDanny 2 months ago
I want to define a variable in a global project. So like, when Inside a Combo-box I have "Fire" I want it to output as "1". So basically, Dim Fire As Integer = 1. But it wont work. I have my Combo Box outputting the command into a text-box, but it keep outputting as Fire not 1. Please help dude!
mathewclarke96 2 months ago
suck a dick u British fag
bebow2 2 months ago
u r gay
bebow2 2 months ago
you
bebow2 2 months ago
"Variables Are Cool"
00jordon 2 months ago
thanks this helped me so much!;) i love your accent:P
coreytree23 3 months ago
you are cool realy...i love you tnxxxxxxxx
Flopy131 3 months ago
it going well but what is Dim means ?
can i change to another something later or there is one type and its "Dim" please reaply
Thanks
divlrawe 3 months ago
This has been flagged as spam show
@Acceptable76 shut up dickhead
PANOSPATISIA 3 months ago
thanks a lot for this!
rujinai 3 months ago
thanks mate for the answer regarding dim....
you are making great tutorials, looking forward to learn php from ur videos !
Akiii001 4 months ago
helped me lot to understand thanks for awesome tut.
hiteshbairathi2 4 months ago
Hey TeachMeComputer what recording software are you using
to make these vids?
MrPaper73 4 months ago
This has been flagged as spam show
where are you from? Albania?
learn to speak english
PANOSPATISIA 5 months ago
@PANOSPATISIA Ironically I was born and live in England. So I'll speak my language however I please.
TeachMeComputer 4 months ago 21
@TeachMeComputer Your accent is awesome. A sight better than the weezy American kids' who post (I'm American, don't call me racist/accentist).
organicgirl94 1 month ago
@PANOSPATISIA He speaks very fluent English the thing is most of you are used to hearing American accent so you can't make a difference when someone is speaking with an English accent you just think it's weird.
SerbianJudo 3 months ago
@PANOSPATISIA What a dick comment
Acceptable76 3 months ago
@PANOSPATISIA
Wow what is wrong with you little twats.... you come here to learn vb.net(You would not be here if this would not be true) and you hate on the video? Wow... who cares how he speaks, everyone understands him clearly.
Gam3Pr3dator 3 months ago
@PANOSPATISIA You son of a bitchh!!! Go fuck yourself...his accent is original!!
BlainUtube 3 months ago
@PANOSPATISIA The only Albanian guy here is you. Majku ti jebem siptarsku
CamperIV 3 months ago
i think Dim means Dimension......!
Akiii001 5 months ago 4
@Akiii001 Dim means Declare In Memory, or that is how I was taught it.
TeachMeComputer 4 months ago 13
@TeachMeComputer What you need to do next is give little projects for people to do and tutorials through them if they get stuck. That'd be ideal for someone like myself. Great job btw.
nowandforever117 4 months ago
SCOUSAAA ! love the accent :P
although i always picture the skit by Harry Enfield .
watch?v=W7VspOs3Qt0 < you will see haha
TheGenetic1 6 months ago
Nice tutorial. :) Can you tell me what's the point of using a variable though? I know you used the Dim messagebox as string = "something" and messagebox.show (messagebox) to show us another way of inserting text into the pop-up box.. but what's the point when you can just use messagebox.show ("something") ?
FarahCalderone 6 months ago
@FarahCalderone he shows u how to declare so u can use it later and dont find it on your way
GEOTHEWORST 6 months ago
@FarahCalderone The message box, or whatever, could come up many times, and if it is a long sentence, you could just use your variable.
It's like taking the lazy way out.
EpicLapse 5 months ago
This has been flagged as spam show
@FarahCalderone The message box, or whatever, could come up many times, and if it is a long sentence, you could just use your variable.
It's like taking the lazy way out.
EpicLapse 5 months ago
Thank you Very much for best VB.NET tutorials.
Waiting for more advance tutorials.
Thank You once again!
QadirPopal 6 months ago
What is a String ???? Sorry Im a beginner...
143RJC 6 months ago
@143RJC line of text
trevortjes 6 months ago
@143RJC
Not sure this has been answered but a string is like an integer but made up of words.
So think of it as a sentence.
Integer sentence = 1 + 1 = 2
String sentence = Hi, my name is Jesus
PwndByChips 5 months ago
i am learning know but at the point i am really liking this tuturials .
TheLakerProduction 7 months ago
Comment removed
dapartysquad 7 months ago
you can also put "As Int" if you are super lazy and cant type "As integer"
derpwaffleballs 7 months ago
Wow with this you can make quizzes and games!!!!!
1loudninja 8 months ago
'Dim' means Dimensions, not 'Declare'.
YouDucks32 8 months ago
1:08 "Anythink" lol
dragonster82 8 months ago
hirap ng gumawa ng db para dyan!
sevendeadlysinz12 9 months ago
This is a fantastic tutorial, and its really easy to follow. Thanks!
duddles95 9 months ago 4
u could just do a msgbox. but i know the point of this vid is variables.
rotsebanotman 9 months ago
Thank-you very much for helping me further develop my knowledge of this programming language!
MrNomSauce 9 months ago
very good video :) keep them coming
Saikedo 9 months ago
your pronunciation is a little weird, the volume of your micro is going up and down, but your tutorials are really good ;D
isaelradesky 10 months ago
thanks for help man
TheC00kiieMonster 10 months ago
You can use "Msgbox" for short
takispap100 10 months ago
Like!!!!
poleetaing 10 months ago
How can we make a new variable by clicking a button?
Olemassacre 10 months ago
Ur a legend. Fact.
LowndBehold 11 months ago
Dim means dimension, not declare. However, I suppose saying it means 'declare' is less confusing to those that aren't familiar.
xycadium 11 months ago
Check out this Tutorial about Variables: youtube.com/watch?v=Ka8uSYxWmYQ
masterweb000 11 months ago
@masterweb000 what, a link to youtube. very funny!
arkay85 10 months ago
very very helpful....thanks a lot
winluckornaim 11 months ago
it's really helpful for us.thanks...... : ).
735akul 1 year ago
You do need to use quotations when using variables, because I did as you told me and it gave me an error - but when I did use quotations it worked just fine.
WormagStudios 1 year ago
@WormagStudios no..You cannot use quation for variables. Quatations are used for strings but never used for any type of variables.
marcky89869 1 year ago
nice this is our subject .. =D thanks ... for doing tutorials =D
jo1021jam 1 year ago
rock on no 3 done
ExplodingSilver 1 year ago
nice video i learn a lot ,,now i don't need tutor..thnx
09chammyful 1 year ago
how can i put a program on the internet so my friends can download it?
thatwaslawlin 1 year ago
@thatwaslawlin Upload it to say... Filefront, megaupload, sites like that.
mrcrunkadone 1 year ago
@thatwaslawlin Go into your project folder > bin > debug > zip the executable and host it on the internet
marcky89869 1 year ago
how can i put a program on the internet so my friends can download it?
thatwaslawlin 1 year ago
@thatwaslawlin Go to debug then build and then save all. Go to my documents then visual studio 2010, projects, whateva u saved it, bin release and then attach the application file. Or look at the download and run program tutorial to see how to make a program that will download it
786RiDz 1 year ago
This has been flagged as spam show
blaalbblaalb111 1 year ago
This has been flagged as spam show
blaalbblaalb111 1 year ago
Thanks for the tutorial !
jepipay 1 year ago
so I want to play a prank on my sister saying your computer is bugged, then it will say windows is now shutting down, ive gotten the message parts but how do I actually make the computer shut down when you hit ok
mrcreamyful 1 year ago
@mrcreamyful You have to use command prompt or CMD for short. To use this you would have to use sendkeys as an output for the program. Sendkeys basically outputs your inputs into the program out to the computer to correspond with your instructions. For instance you would have to start command prompt like this.
shell("cmd.exe") ' this will start Command Prompt or CMD for short
sendkeys.send("shutdown -s -t 10 -c "VIRUS! Shut down in progress!") ' this outputs info to cmd to shutdown the comp.
blaalbblaalb111 1 year ago
This has been flagged as spam show
blaalbblaalb111 1 year ago
i like your accent
TheGuyMath 1 year ago 26
Very nice tutorial,
hwo to i define "Inject"?
twanajester23 1 year ago
Very nice tutorial
twanajester23 1 year ago
These are great vids I plan to watch them all, Im about to start vb.net in my course work and also my employer is considering me for a JR analyst position which will handle alot of vb.net ado.net and share point stuff. Good Job kid.
TheRealGhostShaman 1 year ago
Sorry, but I seemed to have learned more about message boxes than variables in this video. Still liked though.
UnchigaStick 1 year ago
I'm sorry, but i this video, I seemed to have learned more about message boxes than I did about variables.
UnchigaStick 1 year ago
Awsome tutorial
sampathshinning4u 1 year ago
thank you. i never understanded Dim. now i do :)
JR33V3 1 year ago
hello
i need help ,, i saved just a few numbers in a form of column in text.txt (as a vector)
and then i wanted to know how components does this vector contains(i mean,how many numbers i ve written in that vector) , i would like to do this throw : 1stly reading this vector() throw new io.streamreader within a (for...next)loop,can u please tell me how to do this?? thanx
The4159 1 year ago
why string ?
Pakistani290 1 year ago
awesome dude ! .. i guess ill finish all tutorials today and keep my questions till the end !
halawany77 1 year ago
Really Weird, Your using basic, im using Microsoft Visual C# 2008 Express Edition and myne has brackets, unlike your edition so its hard to understand, and theres more errors in myne when i follow your guide, because of this, just a heads up for future tutorials.
ThoughtZProductionS 1 year ago
This one is just like toturial 2 but this one show a shortcuts???
Y dont understand that 100% but anyway toturial is PRO.
SADcoda031 1 year ago
on VB 6 i used to declare variables on GENERAL so they could be use everywhere, how do it on vb 2010?
manutube8080 1 year ago
I need help! i know already how to make var so a new Msgbox/inputbox appers with a diffrent text depending on what var i typed but what i need help with is idk how to make a varible that means end (closes the program) so that if you type the other var it will keep on going and loop where i said it to loop with i know is just to do the loop state but then how to make an End var?! please help i really need an answer quick!
TheMelissaBoy 1 year ago
Can you create a video for Public Variables and their use in other forms???????????
ecruzpinto 1 year ago
Thanks man...I learned so much...need to self study about vb.net
LosTecH88 1 year ago
I think most coders call those double quotes.
Foaman 1 year ago
Thank you :D :D :D:D
DandJ420 1 year ago
thanks so much
Moviemillionare 1 year ago
thanks :)
Ascaron50 1 year ago
Are you able to change variables' value? If so how? That would be an excellent tutorial.
KallanderProductions 1 year ago
thanks / dzoks1 HF
Dzoks1 1 year ago
can u tell me the equivalent of "or" in visual basics
Devireddyjaswanth 1 year ago
lol funny accent
especially when u say "variables"
rokyfox 1 year ago
Speak louder!
Aguywhomakesvids 1 year ago
how can i create a variable which is = to that i type on my keyboard?
asteris145 1 year ago
Thanks man!!
jovanbalaban 1 year ago
nice vid tyvm
RSMVnoobz 1 year ago
Nice TUTS
I have question
what screen recorder do you use ?
saski92 2 years ago
be used anywhere within the form public means the variable can be used anywhere within the project while private means it can only be used on the form in which it was declared dim means the variables private while public shared means the variables public
126644 2 years ago
when you declare a variable you decide whether is public or private, local or global, you give it a name and you decide on its data type for example
dim hello as string = "hello"
makes the variable private gives it the name hello and gives it the data type string meaning your working with words and depending on where you place the variable tells the compiler whether its local or global local means it can only be used in the same event/sub/function it was declared in and global means it can
126644 2 years ago
great. 5 stars! subscribed. :)
0lsi 2 years ago
Nice tutorial.
Concerning variables, could you also write like:
Dim hello As String
--------------------------
hello = "Hello"
then put like, MessageBox.Show(hello)
Or must we give the variable a value as we declare them?
evigtelektrisk 2 years ago
When displaying integers you should convert them to a string first (turn on options strict)
so you should do it like so:
MessageBox.Show(MyIntVar.ToString())
RevitalMalkan 2 years ago
@RevitalMalkan
That's a little much to stomach on the first real tutorial. I'm going to be creating a further informational video on variables and why you would use an integer instead of a string.
TeachMeComputer 2 years ago 8
@RevitalMalkan Very true. The code will be ripped apart and won't be recommended by professionals if it isn't safe, even if it is for demonstration purposes. It's almost always a good idea to convert to string. Thanks for the reminder.
Foaman 1 year ago
@RevitalMalkan Thanks.
Foaman 1 year ago
MessageBox.Show ("OMG THE VIDEO ARE AWSOME")
JeckSulie 2 years ago