error when want to start program

profidz

New member
Joined
Feb 10, 2008
Messages
3
Programming Experience
Beginner
i have vb.net program and code is follow by below

Try
Dim frm1 As fViewStock ' Form1
frm1 = New fViewStock
Application.Run(frm1)
Catch ex As Exception
MessageBox.Show(ex.Message)

End Try

screen will appear error msg.click this link to view error msg :

http://bp1.blogger.com/_Ho8coLCIRLo...M/OLhmL1uSdJo/s1600-h/masa+starting+error.JPG

what i need to check? what i need to do? some one who expert please help.I'll
appreciate any help
 
Last edited:
Instead of showing ex.Message, show ex.ToString. That will display the call stack and tell you exactly where the exception was thrown. As it is there's no indication of what caused the exception other than it's either from the constructor or Load event handler of your form.
 
ok i do what u saying to me and i know this code cause my program error.the code seem cannot init rowNum to valRef .I don't know how to fix it any idea?i am using customDataGrid.

'calling part
valRef = stocklist.Item(e.Row, 3)

'function body
' Holds the row number of the cell being painted.
Public Property Row() As Integer
Get
Return rowNum
End Get
Set(ByVal Value As Integer)
rowNum = Value
End Set
End Property
 
Well, the error message says you're using an invalid rowIndex. What is the value of the rowIndex you're trying to use? Why is it not valid? Again, the information you've provided tells us very little. Remember that we know nothing about your project other than what you tell us. Look at your post and ask yourself whether you'd know what it meant if you knew nothing else about the project.
 
Back
Top