Using the following code
Dim blnGotListOfSQLServers As Boolean
Dim colSQLServers As Collection
Dim objSQLServer As Object
Dim m_dataset As DataSet
Dim m_clsNetAPI32 = New clsNetAPI32
blnGotListOfSQLServers = m_clsNetAPI32.GetListOfServers(colSQLServers)
If blnGotListOfSQLServers Then
For Each objSQLServer In colSQLServers
Me.List1.Items.Add(objSQLServer)
Next
End If
However List1 doesn't populate it populate blanks which is incorrect as when I step through the code values are present in the output window.
Any ideas?
Dim blnGotListOfSQLServers As Boolean
Dim colSQLServers As Collection
Dim objSQLServer As Object
Dim m_dataset As DataSet
Dim m_clsNetAPI32 = New clsNetAPI32
blnGotListOfSQLServers = m_clsNetAPI32.GetListOfServers(colSQLServers)
If blnGotListOfSQLServers Then
For Each objSQLServer In colSQLServers
Me.List1.Items.Add(objSQLServer)
Next
End If
However List1 doesn't populate it populate blanks which is incorrect as when I step through the code values are present in the output window.
Any ideas?