About Syed Adeel Rizvi Expertise I can answers questions regarding web based and desktop based programming in VB.Net. Which can include XML, Custom Controls + Computer Hardware and Windows Turboshooting...etc.
More Skills :
1 . PHP - > All Type Of CMS e.g. (Joomla,Drupul,PHPNuke...etc)
2 . ASP
3 . ASP.Net
4 . CMS
5 . MySql
6 . SQl Server 2000 & 2005
7 . Ms Access
8 . Web Designing
9 . Networking Turboshooting
10 . Windows Turboshooting
11 . Hardware Turboshooting
All Type Of Work Related To IT
I also Do Work as a Freelance as Application & Web Developer & Designer
Experience i have 3 years work experience in software house and 4 years work experience for computer hardware and Networking..
Expert: Syed Adeel Rizvi Date: 7/3/2007 Subject: help with VB sorting
Question hi Rizwan,
I am still having a problem which I cant fix since last night I have finished the code but the Label1.txt line all goes yellow with the following message.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
my current code is bellow. Thanks again for your kind help.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim intArray As New ArrayList(49)
Dim intcount As Integer
Dim intindex As Integer
Dim intnumber
Dim repeated As Boolean
Dim obj As Object
For intcount = 0 To 6
Do
repeated = False
intnumber = Int((50 * Rnd()) + 1)
For intindex = 0 To 6
If intnumber = intArray(intindex) Then
repeated = True
End If
Next
Loop Until repeated = False
intArray(intcount) = intnumber
Next
intindex = -1
For Each obj In GroupBox1.Controls
intindex += 1
obj.text = intArray(intindex)
intArray.Sort()
Next
Answer Hello Saad
First of all im not rizwan im his brother Adeel Rizvi second plz tell me in which u having error if there is error plz check the loops becuz the error is tell that k one of the variable is null mean 0 or greater than the variable value example: Dim intArray As New ArrayList(49)
n u r using intArray(50) or intArray(49) then it will give error if not then no error at all
plz check ur loops values
if still problem then plz mail me at syedadeel2@gmail.com