VB.NET Tutorial For Beginners - Using Arrays (Visual Basic .NET)

  Рет қаралды 59,592

VB Toolbox

VB Toolbox

Күн бұрын

Пікірлер: 56
@mrfigsgame
@mrfigsgame 10 жыл бұрын
Thanks for doing these. These are like the only reputable and recent VB.NET tutorials that I could find. I just needed to learn the language quickly for a job interview, and you helped with that. You and MSDN are very helpful :D
@VBToolbox
@VBToolbox 10 жыл бұрын
Awesome, Joe. :-) So glad I could be of help.
@joseestrada5407
@joseestrada5407 6 жыл бұрын
Thanks so much for this great tutorial. Easy to follow and plain and simple to understand!
@devindwight4564
@devindwight4564 10 жыл бұрын
Great practices for starting up VB forms, love the logistics and the explanation of arrays. Thanks VB Toolbox :)
@VBToolbox
@VBToolbox 10 жыл бұрын
Many thanks, good sir! :-D If you have any ideas for future tutorials, please let me know! ... Oh wait.... You already did... lol
@NewLeaf88
@NewLeaf88 10 жыл бұрын
I love all your tutorials so far! You explain clearly and precisely. If I could ask for a tutorial on web automation applications, bots? It's always been my interest. Thanks again and keep it up! Also, do you have twitter by any chance?
@charlesvanadrichem4646
@charlesvanadrichem4646 2 жыл бұрын
Many thanks for this tutorial, was very usefull. You are also talking about a "first in last out" array. Do you have an example for this?
@VBToolbox
@VBToolbox Жыл бұрын
Hi, Charles! Sorry. I probably misspoke in the video, but I believe I must have been referencing the Stack array, which is technically "last in, first out", which I suppose is similar. As far as useage goes, the only real differences between these collections is their Add/Remove methods for items - Stack uses Push/Pop and Queue uses Enqueue/Dequeue.
@baherwahby22
@baherwahby22 Жыл бұрын
How long did you study vb to get this skills exellent working please answer my question ,also did you have any videos explaining data structures with please help
@VBToolbox
@VBToolbox Жыл бұрын
Hi, baherwahby22! Unfortunately, I don't have a video about structures and it can be a complicated topic, but there is an excellent video on the subject here: kzbin.info/www/bejne/q3erpXmFoq1lhas It's using C#, but the information applies to VB.NET as well.
@hendrastevian6355
@hendrastevian6355 6 жыл бұрын
hi thanks for you tutorial, but i cant draw rectangle,when i click 2d string array the background turn black and i didnt see the rectangle. please help
@cambodeeritnews5629
@cambodeeritnews5629 6 жыл бұрын
hi instructor. can we retrieve data from database by using array or arraylist into listview or datagridview? because when i retrieve data from database to listview or datagridview in order to update it shows error. it says you can not update data from bound data from database? the message i still remember. thanks. i hope help me joyfully.
@inspiringideas8426
@inspiringideas8426 9 жыл бұрын
Thanks for that tutorial. It was great!
@prof.creeper5641
@prof.creeper5641 9 жыл бұрын
Thanks very much :) Спасибо!
@lovejoykufa6476
@lovejoykufa6476 8 жыл бұрын
These tutorials are awesome keep it up hey
@kekopappa3955
@kekopappa3955 10 жыл бұрын
These are damn awesome man. Can u also put complete tutorials on VB.net Cryptography and encryption ? THanks man
@channoufisaber5096
@channoufisaber5096 10 жыл бұрын
I want to ask how to change the color of a table cell by clicking. When you click the mouse on the box changes color :change the color array(2,3). I hope you can reply .Thank you
@VBToolbox
@VBToolbox 10 жыл бұрын
It depends upon the type of form control that you're using. An array itself does not possess any visual formatting controls, rather it's merely a collection of data. Without some form control that supports a "BackColor" property or something similar, you'd have to create your own visual interface in code. As an example, we're drawing rectangles in this tutorial, but you could use Graphics.FillRectangle() at a specified location and size on the form to create a color fill; However, you will want to make sure that you do that before DrawString or it will fill in over your text.
@GeorgePatterson-bl4mv
@GeorgePatterson-bl4mv 5 жыл бұрын
Well, WPF doesn't have CreateGraphics. I searched for an alternative, but it seems more complicated than it's worth.
@kandysman86
@kandysman86 6 жыл бұрын
I thought the class level arrays had to start with Private. Also, dim variables have to come after the event header? Sorry I'm a noob. And I'm using Visual Studio 2017
@MCcraft02
@MCcraft02 5 жыл бұрын
this video was made in 2013. So its most likely outdated although the fundamentals of it still work.
@channoufisaber5096
@channoufisaber5096 10 жыл бұрын
I want to ask how to build dynamic arrays:for example use dynamic arrays for the game of tic tac toe.I hope you can reply .thank you
@VBToolbox
@VBToolbox 10 жыл бұрын
I don't have much time tonight, but I'll make a brief dynamic array example. Tick-tac-toe might not be the best example, though, because it has a specific grid size (3 x 3). Of course, you could still use a dynamic array to flush and randomize the values with ReDim (no preserve) when you start a new game. :-)
@XBbit0xKbronsit0x13X
@XBbit0xKbronsit0x13X 10 жыл бұрын
Wow awesome. I'm just wanted to make a memory game with random numbers. I was trying to do it with structures because I don't understand too much about 2d arrays, but is very helpful. I hope you can reply,, I need some help
@VBToolbox
@VBToolbox 10 жыл бұрын
I'll be happy to help out however I'm able - time permitting, of course. :-)
@XBbit0xKbronsit0x13X
@XBbit0xKbronsit0x13X 10 жыл бұрын
Thank you. I'm just need to make a memory game with random numbers. Just like yours, But you know how can I do in Labels o textboxes instead of drawing rectangles like yours. I want 16 and make pairs. so two 1 two 2 and so on...
@vishayinternet
@vishayinternet 7 жыл бұрын
Hello.... How can I create ActiveX Control in visual Studio 2015 using vb. Net. That activex control I want to use in my SCADA project or in excel. I want .ocx or .dll file in output. So that I can register it and use it anywhere. Please help.
@VBToolbox
@VBToolbox 7 жыл бұрын
Unfortunately, I don't have any experience with creating ActiveX controls. I do have an old tutorial on building .DLL files, however, but I don't know if this will help in your particular application. :-(
@samsmanik4553
@samsmanik4553 10 жыл бұрын
are vb.net and .net in c++ different languages?
@VBToolbox
@VBToolbox 10 жыл бұрын
.Net is a framework and library for language interoperability. VB and C++ are different languages, each with their own unique syntax. :-)
@takova916
@takova916 9 жыл бұрын
Can you please help meeeeeee!!! How can I delete from a array
@VBToolbox
@VBToolbox 9 жыл бұрын
I'm so sorry for the slow reply. I just found your comment today. :-( Most collection types have a Remove() method; However, with these array types, you need only set the value by its index to Nothing (null). For example: MyAnimalArray(5) = Nothing Note: The Array position (5) still exists, but has been purged of data. You can still reuse the index. To completely remove the value AND its index, you'll need to offload the remaining values into another collection or array, and restructure your Array with ReDim.
@thiery572
@thiery572 5 жыл бұрын
Thanks.
@grippnault
@grippnault 10 жыл бұрын
This is an awesome tutorial. I wanted to ask if you could do a tutorial on putting picture boxes in an Array? In this tutorial I used names in the Array like famArray(1) = "Grandma". What I want to do is have grandma';s picture displayed when Grandma is inside of the label (I used a label instead of text box for the output). I got it to work but I had to put a pb for each index and on top of one another so that the picture would be displayed in the same location on the form each time. I would greatly appreciate the tutorial and I'm sure many others will also.
@VBToolbox
@VBToolbox 10 жыл бұрын
You can certainly do this, but I have to ask, is there a reason to put the whole picturebox control in an array, rather than just the image itself? Then you'd just have one picturebox to work with and could swap out the images as desired. If you just needed more properties to work with you could easily build a custom class and store that to the array. :-)
@grippnault
@grippnault 10 жыл бұрын
VB Toolbox That's exactly what I want to do. Just need some help making it happen.
@grippnault
@grippnault 10 жыл бұрын
grippnault It makes the form look unprofessional having 10 picture box's on the form. I just want one pb and have the images displayed to the pb from an Array ...
@VBToolbox
@VBToolbox 10 жыл бұрын
That's definitely the way to go. :-) I'm currently on vacation and I usually work on this stuff from work, but there's a chance I might be able to toss something together for an example. I can't make promises of promptness, however. One other thing to consider is the image storage. Depending upon the size of the images in question, it might behoove you to simply store the file paths in the array and refer to those when each picture is called. This would save on excess memory usage, although if you're not concerned about that and only want fastest performance, you can indeed store the images themselves to the collection which resides in memory.
@grippnault
@grippnault 10 жыл бұрын
VB Toolbox I would prefer the method that uses less storage, paths are fine. I want to learn how to do things professionally. Sorry to trouble you while you're on vacation. Enjoy yourself and I'll hear from you soon, and thank you for the help.
@dominickm.5692
@dominickm.5692 8 жыл бұрын
Can one of you post the code? I have to do this gay tutorial for school. and I don't wanna do it. HELP!
@Forbrukarmakt
@Forbrukarmakt 7 жыл бұрын
so... could someone hook me up with their code? I'll give you a tracking cookie. Found that funny? No? I'll see myself out
@terryblashington7024
@terryblashington7024 8 жыл бұрын
yo buddy, can you just pdf the code so i dont have to type this shit in my class
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 44 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 100 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 23 МЛН
Introduction to Visual Basic Arrays
11:54
Dan McElroy
Рет қаралды 21 М.
VB.NET 2013 - Arrays
32:11
Nicholas Dingle
Рет қаралды 69 М.
Visual Basic (VB.NET) - Full Course for Beginners
3:17:20
freeCodeCamp.org
Рет қаралды 956 М.
Visual Basic.NET Programming. Beginner Lesson 20. Two Dimensional Arrays
10:37