AboutSyed Rizwan Muhammad Rizvi Expertise I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.
Experience Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.
Question Hi there, I am contructing a VB lottery program for Uni but am stuck on the last bit as i am very new to programing. I have to make the system generate 7 random numbers from 1-49 and then arrange in ascending order. I have got as far as to generating the unique 7 numbers 1-49 but cant arrange. I have used one form, one button with the code, 7 labels in one groupbox. Could you help me with making some kind of code to arrange labels or array in the groupbox? I am using vb exp 2005. Thank a million. My code so far is bellow.
Best Regards
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim intarray(49) As Integer
Dim intcount As Integer
Dim intindex As Integer
Dim intnumber
Dim repeated As Boolean
Dim obj As Object