Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Read incoming number from Mobile Device and Save to Database Pin
Dave Kreskowiak7-Aug-07 12:15
mveDave Kreskowiak7-Aug-07 12:15 
AnswerRe: Read incoming number from Mobile Device and Save to Database [modified] Pin
Kiran S. S.8-Aug-07 22:28
Kiran S. S.8-Aug-07 22:28 
QuestionStoring and Retrieving Images from SQL Server using - VB.Net Database Pin
M Irshad Qureshi6-Aug-07 17:56
M Irshad Qureshi6-Aug-07 17:56 
AnswerRe: Storing and Retrieving Images from SQL Server using - VB.Net Database Pin
Colin Angus Mackay6-Aug-07 23:47
Colin Angus Mackay6-Aug-07 23:47 
AnswerRe: Storing and Retrieving Images from SQL Server using - VB.Net Database Pin
ChandraRam7-Aug-07 0:17
ChandraRam7-Aug-07 0:17 
GeneralRe: Storing and Retrieving Images from SQL Server using - VB.Net Database Pin
Colin Angus Mackay7-Aug-07 0:34
Colin Angus Mackay7-Aug-07 0:34 
QuestionWin32_PingStatus Pin
jontyler6-Aug-07 17:09
jontyler6-Aug-07 17:09 
AnswerRe: Win32_PingStatus [modified] Pin
Dave Kreskowiak7-Aug-07 11:56
mveDave Kreskowiak7-Aug-07 11:56 
Your code assumes that you get a StatusCode back. If the name cannot be resolved, you don't get a StatusCode, "<empty>" in CIM Studio, or Nothing in VB.NET. If you convert that back to a number, like your code is doing, you'll probably get 0. This is where you're getting the false positive from.

You can check to see if there is a value using:
For each obj As ManagementObject In objectCollection
    If obj.Properties("StatusCode").Value IsNot Nothing Then
        ' There is an actual value in StatusCode.
        ' Handle this as you normally would.
    Else
        ' StatusCode returned Nothing.  This means
        ' the ping was never performed, so there is
        ' no status code.
    End If





-- modified at 18:09 Tuesday 7th August, 2007

A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Win32_PingStatus Pin
jontyler7-Aug-07 12:27
jontyler7-Aug-07 12:27 
GeneralRe: Win32_PingStatus Pin
Dave Kreskowiak7-Aug-07 12:54
mveDave Kreskowiak7-Aug-07 12:54 
GeneralRe: Win32_PingStatus Pin
jontyler7-Aug-07 13:23
jontyler7-Aug-07 13:23 
GeneralRe: Win32_PingStatus Pin
Dave Kreskowiak7-Aug-07 13:40
mveDave Kreskowiak7-Aug-07 13:40 
QuestionUpgrading VB5 application to VB.Net or C# Pin
Ceriouss6-Aug-07 17:07
Ceriouss6-Aug-07 17:07 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
Christian Graus6-Aug-07 17:33
protectorChristian Graus6-Aug-07 17:33 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
Vasudevan Deepak Kumar7-Aug-07 1:52
Vasudevan Deepak Kumar7-Aug-07 1:52 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
Kevin McFarlane7-Aug-07 2:01
Kevin McFarlane7-Aug-07 2:01 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
leckey7-Aug-07 5:05
leckey7-Aug-07 5:05 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 7:24
'Drew7-Aug-07 7:24 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
Dave Kreskowiak7-Aug-07 11:49
mveDave Kreskowiak7-Aug-07 11:49 
AnswerRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 12:14
'Drew7-Aug-07 12:14 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
Dave Kreskowiak7-Aug-07 12:50
mveDave Kreskowiak7-Aug-07 12:50 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
'Drew7-Aug-07 12:56
'Drew7-Aug-07 12:56 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
emunews31-Oct-08 3:15
emunews31-Oct-08 3:15 
QuestionChanging the location of a form through code Pin
'Drew6-Aug-07 13:01
'Drew6-Aug-07 13:01 
AnswerRe: Changing the location of a form through code Pin
Luc Pattyn6-Aug-07 13:17
sitebuilderLuc Pattyn6-Aug-07 13:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.