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. 😅
@Spawn-062 жыл бұрын
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
@ComputerScienceLessons2 жыл бұрын
There are a number of ways you could approach this. I would check to see if the textbox contains a number and also that the value in the textbox does not contain a decimal point. Dim iAge As Integer If IsNumeric(txtAge.Text) AndAlso InStr(txtAge.Text, ".") 0 Then MsgBox("that is not an integer") Else iAge = CInt(txtAge.Text) End If
@StephenBoyd212 жыл бұрын
Coming along nicely :)
@ComputerScienceLessons2 жыл бұрын
Glad to hear it :)KD
@thecentralscrutinizerr3 жыл бұрын
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.
@giorgiogi93392 жыл бұрын
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!
@yurisucupira3 ай бұрын
I'm studying Systems Analysis and Development (1st year college student). My professors use snake case and tell us to do so, but I can't stress enough how much I prefer camel case: to me, camel case is way more intuitive and easier to type, too.
@MrTs123453 жыл бұрын
it is very helpful but can you teach, on how to saved it in the mysql database?
@joachim10223 жыл бұрын
Very helpful thank you
@ComputerScienceLessons3 жыл бұрын
Glad to help :)KD
@livingspring33613 жыл бұрын
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
@ComputerScienceLessons3 жыл бұрын
I'll do a video on user interface elements soon. I've had a few requests to cover this :)KD
@RainebowUni2 жыл бұрын
how to do I make it so the output is in a label not a msgbox?
@ComputerScienceLessons2 жыл бұрын
Set the Text property of the label. E.G. Label1.Text = "my output" :)KD
@4ngelk1ng3 жыл бұрын
txtComment = "Nice video"
@michsmi82973 жыл бұрын
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.
@TheSiveXclu3 жыл бұрын
For some reason i can't use the functions MsgBox or InputBox. MessageBox works fine though. can anyone help?
@ComputerScienceLessons3 жыл бұрын
I believe the answer to your question is at the start of this video. You probably need to choose the same project template as the one I use. kzbin.info/www/bejne/iGO3eHiMgcRkgqs
@seanpatrickjerometalaverpa9472 жыл бұрын
thankyousomuch sir!
@ComputerScienceLessons2 жыл бұрын
You're most welcome :)KD
@deepanshumolasi71513 жыл бұрын
beatrix potter ? bruh you a harry potter fan......and very nice video sir thank you.
@ComputerScienceLessons3 жыл бұрын
Thanks for the comment. I wouldn't call myself a potterhead but I did like the movies. I think I might feature some of the characters in my my next video. :)KD
@deepanshumolasi71513 жыл бұрын
@@ComputerScienceLessons yup do that and thx for the vid again ....tomorrow's my practical and you saved me.