From the course: Visual Basic Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Call procedures from the application - Visual Basic Tutorial
From the course: Visual Basic Essential Training
Call procedures from the application
- [Instructor] In the module number generator, I have three public procedures. The default scope, or visibility of these procedures, when they're in a module is throughout the entire project. That implies that if I go over to my mainwindow.xaml.vb file and in this event handler, I should be able to access that print document method. So I'll use the module name and then the dot operator and I can see that's true. I can see all three of my procedures listed here. So I'll choose to print document and then press the tab key. When I press Enter, it completes the code and the editor notices that I'm using this number generator module, but that's not necessary. I should be able to access that directly in my code so it's telling me I don't need it by this light gray color. That implies that I can go in here and delete the name of the module and still make that call. Next, I'll make a variable to hold the odd number and the even…
Contents
-
-
-
-
-
-
-
-
-
-
Understand procedures and methods3m 42s
-
(Locked)
Add procedures to module3m 35s
-
(Locked)
Call procedures from the application1m 27s
-
(Locked)
Add procedures to class1m 50s
-
(Locked)
Add code to functions2m 22s
-
(Locked)
Use parameters with procedures4m 37s
-
(Locked)
Challenge: Refactor with parameters1m 14s
-
(Locked)
Solution: Refactor with parameters3m 9s
-
-
-
-
-
-
-