Visual Basic.NET Programming. Beginner Lesson 5. Input with Windows Forms

preview_player
Показать описание
This is the fifth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson, you will learn how to capture input from the user of your application by means of a Windows form. You will learn how to use the Textbox control to capture string data and assign it to variables. You will also learn how to use the ListBox control to capture data, and how to populate it programmatically when the form loads.
Рекомендации по теме
Комментарии
Автор

You can also give the MsgBox function a Title and include Visual Basic Icons to display within the message box. You also can include up the three buttons, which is typically "yes" "no" "cancel". Probably going to cover this later. Input boxes can also be displayed in two special state called "VBApplicationModal" and "VBSystemModal" which means the end user cannot click on any other part of the application or any other application unless they first close the input box or enter a value into it. BTW, the VBModal (system or application) can also be used with forms.

thecentralscrutinizerr
Автор

The fact that it took me 4 videos to figure out that the reason why I cannot find the Toolbox is because you are using Visual Studio and NOT Visual Studio Code is embarrassing. guess that is what i get for skipping the first video though. 😅

e.dnorth
Автор

When I enter the script window through double clicking an object on the form, I can see all the others initialized, but you have only the ones you double clicked there. Why is that? Thanks a lot!

giorgiogi
Автор

how do you validate the input box, for example i want the user to input only integer values. if the user input something like "a", it is rejected and asked to input again

epple
Автор

it is very helpful but can you teach, on how to saved it in the mysql database?

MrTs
Автор

Very helpful, clear and concise! I was wondering if you might go into a bit of data aquisitiion, to show how this can be used for controlling equipment via USB or GPIB etc. and retrieving data.

michsmi
Автор

beatrix potter ? bruh you a harry potter very nice video sir thank you.

deepanshumolasi
Автор

how to do I make it so the output is in a label not a msgbox?

RainebowUni
Автор

How to make it so listbox automatically stretches to show all options or maybe keeps a specific size but has scroll option?
Also, how would I go about adding items to list box from other sources like spreadsheet or another database?

Thank you

livingspring
Автор

For some reason i can't use the functions MsgBox or InputBox. MessageBox works fine though.
can anyone help?

TheSiveXclu