from 2003 to 2005: FormBorderStyle is gone + Assigning nothing to a SQLDataReader
Posted on 2006-07-07
1. Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.
Me.FormBorderStyle = FormBorderStyle.None
Variable 'myReader' is used before it has been assigned a value. A null reference exception could result at runtime.
Private Sub RefreshListview
Dim myreader As SqlDataReader
myreader = mySqlCommand1.ExecuteReader(CommandBehavior.CloseConnection)
Do While (myreader.Read()) = True
Catch ex As Exception
If Not myreader Is Nothing Then