I wrote a function to validate that the user has filled in some textbox's ...the function I wrote works , just wondering is this is the correct way to do this.
Private Function ValidateText() As Boolean
Dim isEmpty As Boolean = False
If Me.txtFirstName.Text = "" Or...
well, the actual install wasnt the difficult part...like you said ..it did take about 10 minutes for the actual install...the time consuming part was trying to figure out what I needed to install and creating a new database and connecting to it.....
InkedGFX
I just spent the last 2 hours getting SQL Server Express 2012 installed on my machine......the reason I did this is so I can (in the future) have my trivia game store the questions
in a database......what a long process this was......everything is working ....finally....
wooohooooooo !
InkedGFX
Haaaaaa!
I think something clicked today...I finally think I understand the basic structure of OOP and classes in VB.NET
I create a PUBLIC class that can be called anywhere in the program...but inside the class I dim private variables and functions and subs so those variables and subs or...
yes , that's exactly what I was doing....I thought about it for awhile and read the example you posted...I read it over and over until I thought to move the Sub to the form class.....which solved the issue and the program is working as expected.....now Im not sure if I am doing this correctly or...
it seems I am doing something wrong with the class QuizQuestions......whenever I add the Public sub CreateMyQuizQuestions() to the QuizQuestions class the code doesnt work , as I get an error saying the key was not found in the dictionary...but if I add the sub to the form and change the public...
adding Imports System.Linq doesnt fix the "tolist" problem
I put the questions in the QuizQuestions class with the catagories enum...is this where the questions and catagory enum needs to be?
InkedGFX
I have been searching google all day today , trying to get more info on Dictionaries.....and List's ...can you believe there isnt one site that really explains how to create and use the List(Of...) object.....even Microsoft doesnt explain it very well.....am I supposed to create a class just...
lol...as always I appreciate you taking the time to help...but I think I need more help than anyone would be willing to give......I really have no business trying to program....so maybe I will stick to Graphics......as much as I would like to learn this.....I think my only option would be to...
thank you for taking the time to help me out with this, but I dont want to take any more of your time...this is over my head because I really have no Idea what Im doing with this.......
InkedGFX
the only thing you have in the QuizQuestion class is the three property values?
I dont really understand where I should have different parts of code... I thought is was correct to create a class to hold all the subs and functions and then to call the subs or functions from the form
lol..I...
no problem...I appreciate the help..... heres the whole QuizQuestion Class
Imports System.Collections.Generic
Public Class QuizQuestion
Public Property Question As String
Public Property AvailableAnswers As New List(Of String)
Public Property CorrectAnswer As Integer
Public Enum...
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.