Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Manintain session Pin
pmarfleet3-Nov-07 6:46
pmarfleet3-Nov-07 6:46 
Questiongetting sql server-2005 backups from vb.net 2005 Pin
kishore lkumar2-Nov-07 20:35
kishore lkumar2-Nov-07 20:35 
QuestionLooping through a array of strcutres Pin
Benny_Lava2-Nov-07 19:37
Benny_Lava2-Nov-07 19:37 
AnswerRe: Looping through a array of strcutres Pin
Christian Graus2-Nov-07 21:02
protectorChristian Graus2-Nov-07 21:02 
AnswerRe: Looping through a array of strcutres Pin
MohammadAmiry3-Nov-07 0:15
MohammadAmiry3-Nov-07 0:15 
QuestionIssue with adding data to grid Pin
nishkarsh_k2-Nov-07 16:42
nishkarsh_k2-Nov-07 16:42 
AnswerRe: Issue with adding data to grid Pin
Andy_L_J4-Nov-07 17:06
Andy_L_J4-Nov-07 17:06 
Questionplease help me to find bug for a lotto project Pin
anpm2-Nov-07 14:07
anpm2-Nov-07 14:07 
In this lotto project i am producing 6 nonrepeating random numberswith one procedure. when i call this to make 6 randomnumbers for 54 week it is giving the same numbers
the code is below

Sub randomNumbers(ByVal num As Integer)
Dim randomNum As New Random
Dim i As Integer
For i = 0 To num
rnd = randomNum.Next(1, 46)
If i = 0 Then
Numbers(i) = rnd
Else
For j As Integer = 0 To i - 1
If Numbers(j) = rnd Then
rnd = randomNum.Next(1, 46)
j = 0
Continue For
End If
Next
Numbers(i) = rnd
End If
Next
End Sub

Sub sorting()
Dim temp As Integer
For i As Integer = 0 To Numbers.Length - 2
For j As Integer = i + 1 To Numbers.Length - 1
If Numbers(j) < Numbers(i) Then
temp = Numbers(i)
Numbers(i) = Numbers(j)
Numbers(j) = temp
End If
Next
Next
End Sub


Private Sub bt56_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt56.Click
Dim i As Integer
'Dim num(5) As Integer
Dim ctr As Integer = 0
Me.Label1.Text = ""

For i = 1 To 54
Me.randomNumbers(5)
sorting()
For j As Integer = 0 To 5
fiftysixArray(ctr) = Numbers(j)
Numbers(j) = 0
ctr += 1
Next
Next
End Sub
AnswerRe: please help me to find bug for a lotto project [modified] Pin
Luc Pattyn2-Nov-07 14:18
sitebuilderLuc Pattyn2-Nov-07 14:18 
GeneralRe: please help me to find bug for a lotto project Pin
anpm2-Nov-07 18:38
anpm2-Nov-07 18:38 
QuestionLISTBox Pin
roger68972-Nov-07 10:47
roger68972-Nov-07 10:47 
AnswerRe: LISTBox Pin
Christian Graus2-Nov-07 21:03
protectorChristian Graus2-Nov-07 21:03 
GeneralRe: LISTBox Pin
roger68972-Nov-07 22:20
roger68972-Nov-07 22:20 
GeneralRe: LISTBox Pin
Christian Graus2-Nov-07 22:52
protectorChristian Graus2-Nov-07 22:52 
QuestionWant to inherit one property to another Pin
Brad^2-Nov-07 10:07
Brad^2-Nov-07 10:07 
AnswerRe: Want to inherit one property to another Pin
BrokenS2-Nov-07 11:18
BrokenS2-Nov-07 11:18 
GeneralRe: Want to inherit one property to another Pin
Brad^2-Nov-07 11:21
Brad^2-Nov-07 11:21 
QuestionWeb Service in VB.Net created XML doc Pin
kendo172-Nov-07 9:58
kendo172-Nov-07 9:58 
QuestionHelp with an CR report... Pin
CCG32-Nov-07 9:48
CCG32-Nov-07 9:48 
QuestionHelp on Submit Form via Email Pin
cyepes272-Nov-07 9:30
cyepes272-Nov-07 9:30 
AnswerRe: Help on Submit Form via Email Pin
Christian Graus2-Nov-07 21:05
protectorChristian Graus2-Nov-07 21:05 
Questionhow to send an xml file wrapped in a cookie to other website using httpwebrequest? Pin
dreddy72-Nov-07 6:35
dreddy72-Nov-07 6:35 
QuestionIs strongly typed database code worth it? It's giving me a headache! Pin
MattPenner2-Nov-07 6:25
MattPenner2-Nov-07 6:25 
QuestionWork in Emulator, not work on Device Pin
Hurricane30002-Nov-07 6:25
Hurricane30002-Nov-07 6:25 
AnswerRe: Work in Emulator, not work on Device Pin
Hurricane30003-Nov-07 8:30
Hurricane30003-Nov-07 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.