Thanks for the clarification. Quick question. I am still getting an InnerException stating that the
Object reference is not set to an instance of an object. Do I still need to declare the Connection
and DataAdapter objects in code when using the data access wizard, or is that taken care of
for...
Ian,
Your example explained a few things to me more clearly than a couple of the books I am reading.
I followed your code example pretty close, but I'm still coming up with errors.
Private Sub Calculator_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
'TODO...
Ian,
Yes, I do have experience with Access and basic SQL commands. I have been reading about data access components in VB.NET, and tried experimenting with the available data access wizards. I am aware of the objConnection and objDataAdapter objects, and that they need to be declared along...
I have a simple calculator app. The user enters numbers into two separate text boxes. The user can press one of four buttons for each arithmetic operand. The result is displayed in the result label. If the user presses the Display button, the entire operation is displayed in a list box, which...
Ian,
You are awesome. The description you provided along with the code examples helped me to understand what the code is actually doing. Thank you for the advice: I turned Option Strict on and will use code tags in future posts.
The code works perfectly, but if I wanted items to be added to...
This is what I have for the class. I know I'm on the right track, just unsure of what I'm missing.
Public Class MathOP
'Define fields
Private FirstNum As Single
Private SecondNum As Single
Private Result As Single
'Define Constructor
Public Sub New(ByVal FirstNum As...
I've created a Form that allows a user to enter two numbers, one in each textbox. There is an add/subtract/multiply/divide button. The user then presses Save to save the equation, and Display to display the entire equation in the listbox, which can store up to ten equations. I am to use a class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.