I would like a walk through on how I can mark a thread as resolved when I feel the issue is resolved....can anyone show me how to do this?
Thank You
InkedGFX
...As String = GetLotterynumbers()
Dim num As String = Mid(SourceNumbers, 1)
Dim DrawDate As Match = Regex.Match(SourceNumbers, "[0-9]*/[0-9]*/[0-9]{4}")
WinningNumbersDrawDate = DrawDate.Value
Dim stringSplit() As String = num.Split(","c)
Dim Index...
I was hoping it wasnt as difficult to deploy as it was to install...lol
I have a simple database in my program...maybe I will continue to develop it...thanks for the reply
InkedGFX
ok...so can I get rid of the second loop and just set the label's text with the first for loop?
for example:
for i = 1 to form1.NumericUpandDown1.value
gameNumbers.add(GetrandomSelection(allNumbers, 6))
label1.text = i
next
edit: I dont think this will work either.. this over write the label...
you know I thought that looked funny....but the code worked so I didnt change it......I need it to generate up to 10 games...with 6 numbers in each game... then fill 10 labels with the 10 games generated...if that makes sence....
InkedGFX
nevermind....I had it wrong...thank you for the help...this will speed my program emensley...thanks again......below is the code that works
Dim allNumbers As IEnumerable(Of Integer) = Enumerable.Range(1, 53).ToArray()
Dim myNumbers As String
Dim gameNumbers As New List(Of...
Jmcilhinney : I took your code and tried to get it to fill a label with just 6 numbers....this returns something unexpected.
Dim allNumbers = Enumerable.Range(1, 53).ToArray()
Dim gameNumbers As New List(Of Integer())
gameNumbers.Add(GetRandomSelection(allNumbers, 6))...
ok..I figured out my problem with not being able to import System.Linq
I needed to change the framework I was using....I switched to the 3.5 framework and fixed 2 errors.......
gameNumbers(i - 1)) still giving me error...
InkedGFX
I'm getting a few errors with the code
Private Sub GenerateLotteryNumbers()
Dim watch = Stopwatch.StartNew()
' there are 53 possible lottery numbers
Dim allNumbers = Enumerable.Range(1, 53).ToArray() <---- Enumerable isnt declared and may be innaccessable
'set...
the only reason I thought about using a background worker is because when the user generates 4 or more games of numbers ..the program lags until all the numbers are picked...this takes different amounts of time....one time it will be quite fast but the next it will take upto 2 minutes or...
I added a backgroundworker to my lottery number generator program..everything is working fine but the backgroundworker keeps working even if all the games are picked....
for example:
the user has the option to choose from 1 to 6 games to generate...each game generates 6 unique numbers...once...
thanks for the reply.....I guess I wont be adding a database to my projects then....since Microsoft doesnt make it user friendly to do so.......
InkedGFX
I would like to know how to deploy a SQL Database with my Program...what I mean is are there extra steps in creation of the setup program to insure the end user will have no problems when installing the program from a setup installer? will the setup take care of everything needed to run the...
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.