Q1. | Is Visual Basic Mac Friendly? |
A1. | Visual Basic is NOT Mac Friendly and cannot be used with a Mac unless you are using something like BootStrap or VirtualBox to run Microsoft Windows 10 with Visual Studio installed. There is a version of Visual Studio that runs directly on Mac/OS, but it does not include Visual Basic. |
Q2. | Does the Visual Basic Course cover VBA? |
A2. | The Visual Basic course does NOT cover VBA (Visual Basic for Applications) which is a macro scripting language used by Microsoft Office products such as Word, Excel, PowerPoint and Access. There are similarities between Visual Basic and VBA but they should be considered separate languages much like the differences between Java and JavaScript. |
Q3. | Does the Visual Basic Course cover .Net Framework? |
A3. | The Visual Basic course is an introductory course in computer programming. Although Visual Basic runs on .Net, the course does not cover the .Net Framework. Most of the routines and methods that are in the libraries provided by Microsoft are available to both Visual Basic and C#. This collection of common routines gives Visual Basic much of the capabilities of C#. However in large projects, C# is the preferred language over Visual Basic. |
Q4. | Can the lab assignments be done on a Chromebook? |
A4. |
A Chromebook is great for browsing the web and using the powerful office
suite GoogleDocs. You will be able to use the Chromebook to view the lectures,
lab assignments and take the quizzes. However, will not be able to do
the lab assignments on a Chromebook. The lab assignments are an essential
part of the course and required to pass the class. You need to have Microsoft
Windows 10 and Microsoft Visual Studio on a computer in order to do the
lab assignments. |
Q1. | I get a message that Form1 is not a member of my project. |
A1. |
MOST LIKELY SOLUTION: Form1 may not be listed as the startup file. Another possibility is that Form1 is not part of the project. |
Q1. | Are there extra credit points available? |
A1. |
Extra credit points count towards the number of points earned, but are not included in the total number of points for the class. For example, if the class has a total of 100 points for all assignments, quizzes and tests and you earned 85 points + 10 points for extra credit, your grade percentage would be (85+10)/100 = 95%. If you did not have the extra credit, your percentage would be (85)/100 = 85%. Extra credit is available in two ways: |
Q1. | What do you charge sales tax on? |
A1. |
Sales tax is only charged on the value that is entered in the Parts TextBox.
|
Q2. | The code provided for the project is not complete |
A2. | Finish coding the functions to make the program work properly. For example
the Private Function FlushCharges() needs to return the total of the flush
charges. Assuming the CheckBoxes inside the Flushes GroupBox are named chkRadiator
and chkTransmission, add the following code to the FlushCharges()
function and remove the Return 0
Dim Cost as Double = 0.0 The MiscCharges( ) function needs to get the values from the two TextBoxes in the 'Parts and Labor' . For example, it the Parts TextBox is named txtParts then this code will get the value for parts: Dim Cost as Double = 0.0 Something similar needs to be done for Labor inside the MiscCharges(
) function. Make sure that your return Cost instead of a Return 0 |
Q1. | What is the difference between / \ and Mod? How do you compute quotient and remainder |
A1. |
Floating Point Division in Visual Basic The forward-slash / computes a floating point quotient. For example, 22 / 6 is equal to 3.66667 ___
|
Q1. | What needs to be done to complete the Rock-Paper-Scissors lab project? |
A1. |
The PowerPoint presentation for the Rock-Paper-Scissors lab project does not provide a complete solution. It is going to take some extra programming on the part of the student to complete the project. PART 1 - MAKE SURE AN EVENT HANDLER IS PRESENT FOR ALL SIX PICTURES
|
Q1. | How do you easily set a validating event handler for all of the TextBoxes? |
A1. |
A single Visual Basic event handler can be setup to process events from more than one control. The code below shows how to use one event handler for 12 different TextBoxes. Private
Sub
rainfallTextBox_Validating(sender As
TextBox, e As CancelEventArgs) Handles
If (value <
0) |
Q1. | How do you create an OpenFileDialog control? |
A1. |
1) The OpenFileDialog tool is located in the Dialogs group in the ToolBox.
|
Q1. | How do I get rid of the Windows.Forms.DialogResult.Ok error? |
A1. |
Microsoft likes to change things around occasionally. Some versions of
Visual Basic need a fully qualified name for the dialog box result identifier,
others don't. If you get an error with the squiggly red line under Windows.Forms.
on Remove the Windows.Forms. and change the line to |
Q1. | How do I fit an image in a VB PictureBox? |
A1. |
Visual Basic can automatically resize an image to fit in a PictureBox control by setting the SizeMode property for the PictureBox to Zoom. After you create the PictureBox on your form, select its Properties and scroll down to SizeMode. Click the down-arrow on the right of SizeMode and select Zoom. You can now use the mouse to grab the corners of the PictureBox and watch the image automatically grow and shrink as you resize the PictureBox. |
Q1. | How can the For Each loop be used to clear the Text property in a group of controls? |
A1. |
The For Each loop can be used to go through a collection of controls to update a property on each control. Example: A GroupBox named grpDays is a special control that is a container that can hold other controls such as Labels, TextBoxes, Buttons, RadioButtons, CheckBoxes, etc. The GroupBox has a property named Controls that keeps track of all the controls that are part of the GroupBox. The code below shows how to clear the Text property of each of the TextBoxes,
but leave all of the other controls alone. |
Q1. | How do I use the screen magnifier on Windows or macOS |
A1. |
The Windows Magnifier tool can be used on any part of the screen. To activate the magnifier
On a Mac and running macOS, the magnifier/Zoom tool is activated by
|
-End of Visual Basic FAQ